mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 20:04:45 +01:00
Fixes
This commit is contained in:
parent
c15162c9b9
commit
3766db0223
@ -60,7 +60,7 @@ class Logger extends AbstractLogger
|
|||||||
|
|
||||||
private static string $dateTimeFormat = 'Y-m-d H:i:s';
|
private static string $dateTimeFormat = 'Y-m-d H:i:s';
|
||||||
public int $minLevelIndex;
|
public int $minLevelIndex;
|
||||||
private array $formatter;
|
private \Closure $formatter;
|
||||||
|
|
||||||
private WritableStream $stdout;
|
private WritableStream $stdout;
|
||||||
/**
|
/**
|
||||||
@ -68,7 +68,7 @@ class Logger extends AbstractLogger
|
|||||||
*/
|
*/
|
||||||
private static array $closePromises = [];
|
private static array $closePromises = [];
|
||||||
|
|
||||||
protected function __construct(string $minLevel = LogLevel::WARNING, callable $formatter = null)
|
protected function __construct(string $minLevel = LogLevel::WARNING, \Closure $formatter = null)
|
||||||
{
|
{
|
||||||
if (null === $minLevel) {
|
if (null === $minLevel) {
|
||||||
if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {
|
if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user