Update logger level

This commit is contained in:
Alexander Pankratov 2019-05-15 02:40:46 +03:00
parent 147d3126b0
commit d8df89eacd
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@ INDEX_MESSAGE="Welcome to i-c-a.su client for telegram. \nIf you have questions
# TELEGRAM CLIENT
TELEGRAM_API_ID=
TELEGRAM_API_HASH=
# ERROR = 1; WARNING = 2; const NOTICE = 3; VERBOSE = 4; ULTRA_VERBOSE = 5;
LOGGER_LEVEL=3
# TELEGRAM SOCKS5 PROXY (optional)
TELEGRAM_PROXY_ADDRESS=

View File

@ -18,7 +18,7 @@ return [
],
'logger' => [ // Logger settings
'logger' => 3, // 0 - Logs disabled, 3 - echo logs.
'logger_level' => \danog\MadelineProto\Logger::FATAL_ERROR, // Logging level, available logging levels are: ULTRA_VERBOSE - 0, VERBOSE - 1 , NOTICE - 2, WARNING - 3, ERROR - 4, FATAL_ERROR - 5.
'logger_level' => (int) getenv('LOGGER_LEVEL'), // Logging level, available logging levels are: ULTRA_VERBOSE - 0, VERBOSE - 1 , NOTICE - 2, WARNING - 3, ERROR - 4, FATAL_ERROR - 5.
],
'updates' => [
'handle_updates' => false, // Should I handle updates?