diff options
Diffstat (limited to 'engine/logging.php')
-rw-r--r-- | engine/logging.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/logging.php b/engine/logging.php index 1bc946b..24803cf 100644 --- a/engine/logging.php +++ b/engine/logging.php @@ -72,6 +72,9 @@ class logging { } public static function logCustom(LogLevel $level, ...$args): void { + global $config; + if (!$config['is_dev'] && $level == LogLevel::DEBUG) + return; self::write($level, self::strVars($args)); } |