mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
Formatting fix
This commit is contained in:
parent
d7b00355ce
commit
dba20dc8f3
|
|
@ -47,7 +47,7 @@ class FileLogger implements LoggerInterface
|
||||||
* @var array[float]
|
* @var array[float]
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public $timings = [];
|
private $timings = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instance.
|
* Instance.
|
||||||
|
|
@ -252,6 +252,7 @@ class FileLogger implements LoggerInterface
|
||||||
$replace['{ip}'] = sprintf('%--15s', $_SERVER['REMOTE_ADDR'] ?? '0.0.0.0');
|
$replace['{ip}'] = sprintf('%--15s', $_SERVER['REMOTE_ADDR'] ?? '0.0.0.0');
|
||||||
$replace['{version}'] = sprintf('%--15s', PHP_VERSION);
|
$replace['{version}'] = sprintf('%--15s', PHP_VERSION);
|
||||||
$replace['{os}'] = sprintf('%--15s', PHP_OS);
|
$replace['{os}'] = sprintf('%--15s', PHP_OS);
|
||||||
|
$replace['{line}'] = isset($context['line']) ? sprintf('%--15s', $context['line']) : '?';
|
||||||
|
|
||||||
return strtr($message, $replace);
|
return strtr($message, $replace);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user