# HG changeset patch # User sam # Date 1711272849 -25200 # Node ID c91d2410a100c2f3971050691541790b5f3f9dc1 # Parent ea9270ed03eac5eaf05f4b35e0cff25798ba631f fix: ugly log-level directive diff -r ea9270ed03ea -r c91d2410a100 semicongine/core/buildconfig.nim --- 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