This update introduces a critical bug fix where Console logging was enabled in web environments

This commit is contained in:
netkas 2024-10-29 14:18:30 -04:00
parent 73c333e6e6
commit ccc3378774
3 changed files with 12 additions and 1 deletions

View file

@ -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()))
{