laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.78k stars 296 forks source link

Emergency Logger Issue in Laravel using Octane #657

Closed erfanmola closed 1 year ago

erfanmola commented 1 year ago

I keep getting this error being logged in my laravel.log file lately, it's a bug introduced in latest versions :

[2023-03-07 01:33:03] laravel.EMERGENCY: Unable to create configured logger. Using emergency logger. {"exception":"[object] (InvalidArgumentException(code: 0): Log [none] is not defined. at /PATH/vendor/laravel/framework/src/Illuminate/Log/LogManager.php:210)
[stacktrace]
#0 /PATH/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(135): Illuminate\\Log\\LogManager->resolve()
#1 /PATH/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(122): Illuminate\\Log\\LogManager->get()
#2 /PATH/vendor/laravel/octane/src/Listeners/FlushLogContext.php(23): Illuminate\\Log\\LogManager->driver()
#3 /PATH/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(441): Laravel\\Octane\\Listeners\\FlushLogContext->handle()
#4 /PATH/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(249): Illuminate\\Events\\Dispatcher->Illuminate\\Events\\{closure}()
#5 /PATH/vendor/laravel/octane/src/DispatchesEvents.php(20): Illuminate\\Events\\Dispatcher->dispatch()
#6 /PATH/vendor/laravel/octane/src/Worker.php(177): Laravel\\Octane\\Worker->dispatchEvent()
#7 /PATH/vendor/laravel/octane/bin/swoole-server(145): Laravel\\Octane\\Worker->handleTick()
#8 [internal function]: {closure}()
#9 /PATH/vendor/laravel/octane/bin/swoole-server(170): OpenSwoole\\Server->start()
#10 {main}
"} 

It is urgent, fix it please, it generates 5GB log each day!

driesvints commented 1 year ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!

erfanmola commented 1 year ago

I tried all the methods, got no answers, I had no issues until I ran composer update, and octane got updated last week