diff --git a/src/app/core/tasks/threadpool.nim b/src/app/core/tasks/threadpool.nim index e285ccf8bb..1c346d4bf5 100644 --- a/src/app/core/tasks/threadpool.nim +++ b/src/app/core/tasks/threadpool.nim @@ -53,8 +53,12 @@ proc runTask(safeTaskArg: ThreadSafeTaskArg) {.gcsafe, nimcall, raises: [].} = let messageType = parsed{"$type"}.getStr - debug "[threadpool task thread] initiating task", messageType=messageType, - threadid=getThreadId(), task=taskArg + if defined(production): + debug "[threadpool task thread] initiating task", messageType=messageType, + threadid=getThreadId() + else: + debug "[threadpool task thread] initiating task", messageType=messageType, + threadid=getThreadId(), task=taskArg try: safeTaskArg.tptr(taskArg)