mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 14:24:41 +02:00
Fix that Icinga\Application\Logger::writesTo* is not functional
This commit is contained in:
parent
9ce9e0270c
commit
b0b95ab387
@ -271,7 +271,7 @@ class Logger
|
||||
*/
|
||||
public static function writesToSyslog()
|
||||
{
|
||||
return static::$instance && static::$instance instanceof SyslogWriter;
|
||||
return static::$instance && static::$instance->getWriter() instanceof SyslogWriter;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -281,7 +281,7 @@ class Logger
|
||||
*/
|
||||
public static function writesToFile()
|
||||
{
|
||||
return static::$instance && static::$instance instanceof FileWriter;
|
||||
return static::$instance && static::$instance->getWriter() instanceof FileWriter;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user