Skip to content

Commit af31781

Browse files
authored
Removed octane specific logging (#30)
* Removed octane specific logging * csfixer
1 parent f295777 commit af31781

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/FilebeatLogging/FilebeatLoggingServiceProvider.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use JsonException;
66
use Cego\FilebeatLoggerFactory;
7-
use Monolog\Handler\ProcessHandler;
87
use Illuminate\Support\Facades\Config;
98
use Illuminate\Support\ServiceProvider;
109
use 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
}

0 commit comments

Comments
 (0)