Skip to content

Commit

Permalink
Removed octane specific logging
Browse files Browse the repository at this point in the history
  • Loading branch information
LauJosefsen authored May 31, 2024
1 parent f295777 commit 945b567
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/FilebeatLogging/FilebeatLoggingServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,9 @@ public function register(): void
'via' => FilebeatLoggerFactory::class,
];

if($this->isOctane()) {
$config['handler'] = new ProcessHandler('cat >> /proc/1/fd/1');
}

Config::set('logging.channels.filebeat', $config);

/* @phpstan-ignore-next-line */
$this->app->bind(ExceptionHandler::class, LoggerExceptionHandler::class);
}

/** Detect if application is running octane */
protected function isOctane(): bool
{
return isset($_SERVER['LARAVEL_OCTANE']) && ((int)$_SERVER['LARAVEL_OCTANE'] === 1);
}
}

0 comments on commit 945b567

Please sign in to comment.