changeset 1040:c91d2410a100

fix: ugly log-level directive
author sam <sam@basx.dev>
date Sun, 24 Mar 2024 16:34:09 +0700
parents ea9270ed03ea
children ad8a927d038a
files semicongine/core/buildconfig.nim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/semicongine/core/buildconfig.nim	Sat Mar 23 22:57:11 2024 +0700
+++ b/semicongine/core/buildconfig.nim	Sun Mar 24 16:34:09 2024 +0700
@@ -42,8 +42,8 @@
 const CONFIGHOTRELOADINTERVAL* {.intdefine.}: int = 1000
 
 # log level
-const LOGLEVEL {.strdefine.}: string = (when DEBUG: "lvlWarn" else: "lvlWarn")
-const ENGINE_LOGLEVEL* = parseEnum[Level](LOGLEVEL)
+const LOGLEVEL {.strdefine.}: string = "lvlWarn"
+const ENGINE_LOGLEVEL* = parseEnum[Level]("lvl" & LOGLEVEL)
 
 # resource bundleing settings, need to be configured per project
 const PACKAGETYPE* {.strdefine.}: string = "" # dir, zip, exe