Move logs

This commit is contained in:
Daniil Gentili 2020-07-12 11:42:53 +02:00
parent 3e15063da0
commit 06e347ca85
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

View File

@ -228,8 +228,8 @@ class Logger
$this->stdout = null;
\unlink($this->optional);
$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);

View File

@ -1317,7 +1317,7 @@ class MTProto extends AsyncConstruct implements TLCallback
'logger' => (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') ? Logger::ECHO_LOGGER : Logger::FILE_LOGGER,
// overwrite previous setting and echo logs
'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.
], 'max_tries' => [
'query' => 5,