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