From 7e46bc3ed769a14cb819d696992c766f28c99329 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sun, 9 Oct 2022 21:59:40 +0200 Subject: [PATCH] feat: turn on debug logging w/out -d:release Signed-off-by: Christopher Arndt --- examples/test_jacket.nim | 2 +- examples/test_port_connect_cb.nim | 2 +- examples/test_port_register.nim | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/test_jacket.nim b/examples/test_jacket.nim index 64871a7..e14e695 100644 --- a/examples/test_jacket.nim +++ b/examples/test_jacket.nim @@ -3,7 +3,7 @@ import jacket var jclient: ClientTPtr var status: cint -var log = newConsoleLogger(lvlInfo) +var log = newConsoleLogger(when defined(release): lvlInfo else: lvlDebug) proc errorCb(msg: cstring) {.cdecl.} = # Suppress verbose JACK error messges when server is not available by diff --git a/examples/test_port_connect_cb.nim b/examples/test_port_connect_cb.nim index 2b96194..9ef455d 100644 --- a/examples/test_port_connect_cb.nim +++ b/examples/test_port_connect_cb.nim @@ -4,7 +4,7 @@ import signal var jclient: ClientTPtr var status: cint -var log = newConsoleLogger(lvlDebug) +var log = newConsoleLogger(when defined(release): lvlInfo else: lvlDebug) proc errorCb(msg: cstring) {.cdecl.} = # Suppress verbose JACK error messages when server is not available by diff --git a/examples/test_port_register.nim b/examples/test_port_register.nim index f9f313d..874b761 100644 --- a/examples/test_port_register.nim +++ b/examples/test_port_register.nim @@ -4,7 +4,7 @@ import jacket var jclient: ClientTPtr var status: cint -var log = newConsoleLogger(lvlDebug) +var log = newConsoleLogger(when defined(release): lvlInfo else: lvlDebug) proc errorCb(msg: cstring) {.cdecl.} = # Suppress verbose JACK error messages when server is not available by