Skip to content

Commit

Permalink
fix: Remove threadpool data from logs on production builds
Browse files Browse the repository at this point in the history
(cherry picked from commit cd33dfb)
  • Loading branch information
alexjba authored and alaibe committed Jan 13, 2025
1 parent e7a5b67 commit dfae96a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/core/tasks/threadpool.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dfae96a

Please sign in to comment.