mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Bugfixing
This commit is contained in:
parent
83f187a047
commit
6150c2fa9c
5 changed files with 44 additions and 2 deletions
|
@ -89,7 +89,10 @@ class Logger extends BaseObject
|
|||
return;
|
||||
}
|
||||
|
||||
LoggerFactory::addStreamHandler($logger, $logfile, $loglevel);
|
||||
$level = self::mapPSR3Level($loglevel);
|
||||
LoggerFactory::addStreamHandler($logger, $logfile, $level);
|
||||
|
||||
self::$logger = $logger;
|
||||
|
||||
$logfile = Config::get('system', 'dlogfile');
|
||||
|
||||
|
@ -185,6 +188,7 @@ class Logger extends BaseObject
|
|||
public static function error($message, $context = [])
|
||||
{
|
||||
if (!isset(self::$logger)) {
|
||||
echo "not set!?\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue