1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-05 16:17:28 +02:00

fix: restore php error_log writing (#4196)

This commit is contained in:
Dag
2024-08-07 18:09:44 +02:00
committed by GitHub
parent 313be4c512
commit c11bc184ca
2 changed files with 61 additions and 27 deletions

View File

@@ -61,11 +61,12 @@ register_shutdown_function(function () use ($logger) {
});
$cacheFactory = new CacheFactory($logger);
if (Debug::isEnabled()) {
$logger->addHandler(new StreamHandler('php://stderr', Logger::DEBUG));
$logger->addHandler(new ErrorLogHandler(Logger::DEBUG));
$cache = $cacheFactory->create('array');
} else {
$logger->addHandler(new StreamHandler('php://stderr', Logger::INFO));
$logger->addHandler(new ErrorLogHandler(Logger::INFO));
$cache = $cacheFactory->create();
}
$httpClient = new CurlHttpClient();