Commit 414fb086 by 王召彬

忽略掉健康检查的notice日志

parent 8f12c142
...@@ -38,7 +38,6 @@ class LogHandler extends AbstractProcessingHandler ...@@ -38,7 +38,6 @@ class LogHandler extends AbstractProcessingHandler
} }
$lines = array_column($records, 'formatted'); $lines = array_column($records, 'formatted');
$this->write($lines); $this->write($lines);
} }
...@@ -77,6 +76,11 @@ class LogHandler extends AbstractProcessingHandler ...@@ -77,6 +76,11 @@ class LogHandler extends AbstractProcessingHandler
} }
$record = $this->processRecord($record); $record = $this->processRecord($record);
$search1 = strpos($record['messages'], '[http://testapi.2b3.cn:80/]');
$search2 = strpos($record['messages'], '[http://api.2b3.cn:80/]');
if($search1 !== false || $search2 !== false) {
continue;
}
$record['formatted'] = $this->getFormatter()->format($record); $record['formatted'] = $this->getFormatter()->format($record);
$messages[] = $record; $messages[] = $record;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment