Skip to content

Commit

Permalink
Change production log level to INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Apr 9, 2022
1 parent 0224daf commit cecfa55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'logger' => [
'name' => 'slim-app',
'path' => isset($_ENV['DOCKER']) ? 'php://stdout' : __DIR__ . '/../logs/app.log',
'level' => LogLevel::DEBUG,
'level' => isset($_ENV['PHP_ENV']) === false || $_ENV['PHP_ENV'] === 'development' ? LogLevel::DEBUG : LogLevel::INFO,
]
]
);
Expand Down

0 comments on commit cecfa55

Please sign in to comment.