]> git.agnieray.net Git - galette.git/blobdiff - galette/includes/galette.inc.php
Rely on static methods rather than constants comparison
[galette.git] / galette / includes / galette.inc.php
index e8b59483700c7e1c0eb26bef858388f9abcf7186..5b5897e736262dc4c907e529abbb291aae54a7ce 100644 (file)
@@ -142,7 +142,7 @@ Analog::$format = "%s - %s - %s - %s\n";
 $galette_run_log = null;
 
 if (!defined('GALETTE_LOG_LVL')) {
-    if (GALETTE_MODE === 'DEV') {
+    if (\Galette\Core\Galette::isDebugEnabled()) {
         define('GALETTE_LOG_LVL', Analog::DEBUG);
     } elseif (defined('GALETTE_TESTS')) {
         define('GALETTE_LOG_LVL', Analog::NOTICE);