File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change 44
55use JsonException ;
66use Cego \FilebeatLoggerFactory ;
7- use Monolog \Handler \ProcessHandler ;
87use Illuminate \Support \Facades \Config ;
98use Illuminate \Support \ServiceProvider ;
109use Illuminate \Contracts \Debug \ExceptionHandler ;
@@ -30,19 +29,9 @@ public function register(): void
3029 'via ' => FilebeatLoggerFactory::class,
3130 ];
3231
33- if ($ this ->isOctane ()) {
34- $ config ['handler ' ] = new ProcessHandler ('cat >> /proc/1/fd/1 ' );
35- }
36-
3732 Config::set ('logging.channels.filebeat ' , $ config );
3833
3934 /* @phpstan-ignore-next-line */
4035 $ this ->app ->bind (ExceptionHandler::class, LoggerExceptionHandler::class);
4136 }
42-
43- /** Detect if application is running octane */
44- protected function isOctane (): bool
45- {
46- return isset ($ _SERVER ['LARAVEL_OCTANE ' ]) && ((int )$ _SERVER ['LARAVEL_OCTANE ' ] === 1 );
47- }
4837}
You can’t perform that action at this time.
0 commit comments