Allow futureLogging in release builds (#21448)
* Add test case * Fixes 21447: Keeps stackTrace around when using futureLogging * Remove extra whitespace
This commit is contained in:
parent
38d299dfc0
commit
d4d28f2ffe
2 changed files with 7 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ type
|
|||
finished: bool
|
||||
error*: ref Exception ## Stored exception
|
||||
errorStackTrace*: string
|
||||
when not defined(release):
|
||||
when not defined(release) or defined(futureLogging):
|
||||
stackTrace: seq[StackTraceEntry] ## For debugging purposes only.
|
||||
id: int
|
||||
fromProc: string
|
||||
|
|
|
|||
6
tests/async/t21447.nim
Normal file
6
tests/async/t21447.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
discard """
|
||||
action: "compile"
|
||||
cmd: "nim c -d:release -d:futureLogging $file"
|
||||
"""
|
||||
|
||||
import std/asyncdispatch
|
||||
Loading…
Add table
Add a link
Reference in a new issue