Set default log level to 'info' in Utilities. instead of using null due to deprecation error

This commit is contained in:
netkas 2024-10-25 20:10:40 -04:00
parent cf4041f47b
commit e5ce8cdc01
2 changed files with 9 additions and 1 deletions

View file

@ -84,7 +84,7 @@
{
$args = Parse::getArguments();
switch(strtolower(($args['log'] ?? $args['log-level'] ?? (getenv('LOG_LEVEL') ?: null) ?? null)))
switch(strtolower(($args['log'] ?? $args['log-level'] ?? (getenv('LOG_LEVEL') ?: 'info') ?? 'info')))
{
case LevelType::DEBUG:
case 'debug':