Merge pull request #5869 from umbraco/v8/bugfix/logviewer-error-count

V8: Fixes LogViewer Error Count search result click
This commit is contained in:
Bjarke Berg
2019-07-12 12:56:08 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -42,7 +42,8 @@
//functions
vm.searchLogQuery = searchLogQuery;
vm.findMessageTemplate = findMessageTemplate;
vm.searchErrors = searchErrors;
function preFlightCheck(){
vm.loading = true;
//Do our pre-flight check (to see if we can view logs)
@@ -132,6 +133,10 @@
searchLogQuery(logQuery);
}
function searchErrors(){
var logQuery = "@Level='Fatal' or @Level='Error' or Has(@Exception)";
searchLogQuery(logQuery);
}

View File

@@ -84,7 +84,7 @@
<div ng-show=" vm.canLoadLogs">
<!-- No of Errors -->
<umb-box ng-click="vm.searchLogQuery('Has(@Exception)')" style="cursor:pointer;">
<umb-box ng-click="vm.searchErrors()" style="cursor:pointer;">
<umb-box-header title="Number of Errors"></umb-box-header>
<umb-box-content class="block-form" style="font-size: 40px; font-weight:900; text-align:center; color:#fe6561;">
{{ vm.numberOfErrors }}