aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index ccb2316f..d29900f7 100644
--- a/index.php
+++ b/index.php
@@ -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();