mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Make isHandling create the minimum required record
This commit is contained in:
@@ -338,13 +338,7 @@ class Logger
|
|||||||
public function isHandling($level)
|
public function isHandling($level)
|
||||||
{
|
{
|
||||||
$record = array(
|
$record = array(
|
||||||
'message' => '',
|
|
||||||
'context' => array(),
|
|
||||||
'level' => $level,
|
'level' => $level,
|
||||||
'level_name' => static::getLevelName($level),
|
|
||||||
'channel' => $this->name,
|
|
||||||
'datetime' => new \DateTime('now', static::$timezone),
|
|
||||||
'extra' => array(),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ($this->handlers as $key => $handler) {
|
foreach ($this->handlers as $key => $handler) {
|
||||||
|
Reference in New Issue
Block a user