From 864e73cdc75a2fb0e4fad500f649dae2343c10a8 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 11 Jul 2022 02:59:35 +0300 Subject: rewrite css and js assets building --- engine/logging.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine/logging.php') 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)); } -- cgit v1.2.3