This update introduces a critical bug fix where Console logging was enabled in web environments
This commit is contained in:
parent
73c333e6e6
commit
ccc3378774
3 changed files with 12 additions and 1 deletions
|
@ -24,6 +24,12 @@ class ConsoleLogging implements LogHandlerInterface
|
|||
*/
|
||||
public static function handle(Application $application, Event $event): void
|
||||
{
|
||||
// Check if the application is running in a CLI environment, if not, return
|
||||
if(!Utilities::runningInCli())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the event level is enabled for console logging
|
||||
if(!Validate::checkLevelType($event->getLevel(), $application->getConsoleLoggingLevel()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue