summaryrefslogtreecommitdiff
path: root/engine/logging.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-11 02:59:35 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-11 02:59:40 +0300
commit864e73cdc75a2fb0e4fad500f649dae2343c10a8 (patch)
tree6ce6762c6be72c98592a32fe0bed4f2ce751d544 /engine/logging.php
parentcb13ea239b9f1ca6aea43125d5694d5a55dcd287 (diff)
rewrite css and js assets building
Diffstat (limited to 'engine/logging.php')
-rw-r--r--engine/logging.php3
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));
}