# HG changeset patch # User sam # Date 1711272849 -25200 # Node ID 8fee76740f952686a382c9d79381911c1270f974 # Parent 295cf32f883d307d7cf1f1cccdbee5d39aa701a4 fix: ugly log-level directive diff -r 295cf32f883d -r 8fee76740f95 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