[LOG] Only try to log if setup, so logs can be disabled, in tests, for instance
This commit is contained in:
parent
7e648a296f
commit
8d25859de7
|
@ -47,6 +47,8 @@ abstract class Log
|
||||||
*/
|
*/
|
||||||
public static function __callStatic(string $name, array $args)
|
public static function __callStatic(string $name, array $args)
|
||||||
{
|
{
|
||||||
return self::$logger->{$name}(...$args);
|
if (isset(self::$logger)) {
|
||||||
|
return self::$logger->{$name}(...$args);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue