Permalink
Browse files

allow searching for requestId and user

  • Loading branch information...
icewind1991 committed Feb 13, 2017
1 parent 50bec8e commit 7f84e55bb4a1e4086ab0918a6bf58ad3885bbd91
Showing with 5 additions and 4 deletions.
  1. +0 −1 js/Providers/LogProvider.js
  2. +5 −3 lib/Log/SearchFilter.php
@@ -30,7 +30,6 @@ export class LogProvider extends EventEmitter {
set query (newQuery) {
if (newQuery !== this.searchQuery) {
this.searchQuery = newQuery;
console.log(newQuery);
this.reset();
this.load();
}
View
@@ -44,7 +44,7 @@ public function __construct(\Iterator $iterator, $query) {
}
private function formatLevel($level) {
return $this->levels[$level];
return isset($this->levels[$level]) ? $this->levels[$level] : 'Unknown';
}
public function accept() {
@@ -53,7 +53,9 @@ public function accept() {
}
$value = $this->current();
return stripos($value['message'], $this->query) !== false
|| stripos($value['app'], $this->query) !== false
|| stripos($this->formatLevel($value['level']), $this->query) !== false;
|| stripos($value['app'], $this->query) !== false
|| stripos($value['reqId'], $this->query) !== false
|| stripos($value['user'], $this->query) !== false
|| stripos($this->formatLevel($value['level']), $this->query) !== false;
}
}

0 comments on commit 7f84e55

Please sign in to comment.