Move logs
This commit is contained in:
parent
3e15063da0
commit
06e347ca85
@ -228,9 +228,9 @@ class Logger
|
|||||||
$this->stdout = null;
|
$this->stdout = null;
|
||||||
\unlink($this->optional);
|
\unlink($this->optional);
|
||||||
$this->stdout = new ResourceOutputStream(\fopen($this->optional, 'a'));
|
$this->stdout = new ResourceOutputStream(\fopen($this->optional, 'a'));
|
||||||
}
|
|
||||||
$this->logger("Automatically truncated logfile to $max_size");
|
$this->logger("Automatically truncated logfile to $max_size");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
Loop::unreference($this->rotateId);
|
Loop::unreference($this->rotateId);
|
||||||
}
|
}
|
||||||
|
@ -1317,7 +1317,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
|||||||
'logger' => (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') ? Logger::ECHO_LOGGER : Logger::FILE_LOGGER,
|
'logger' => (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') ? Logger::ECHO_LOGGER : Logger::FILE_LOGGER,
|
||||||
// overwrite previous setting and echo logs
|
// overwrite previous setting and echo logs
|
||||||
'logger_level' => Logger::VERBOSE,
|
'logger_level' => Logger::VERBOSE,
|
||||||
'max_size' => 10 * 1024 * 1024,
|
'max_size' => 1 * 1024 * 1024,
|
||||||
// Logging level, available logging levels are: ULTRA_VERBOSE, VERBOSE, NOTICE, WARNING, ERROR, FATAL_ERROR. Can be provided as last parameter to the logging function.
|
// Logging level, available logging levels are: ULTRA_VERBOSE, VERBOSE, NOTICE, WARNING, ERROR, FATAL_ERROR. Can be provided as last parameter to the logging function.
|
||||||
], 'max_tries' => [
|
], 'max_tries' => [
|
||||||
'query' => 5,
|
'query' => 5,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user