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:
Jake Leahy
2023-03-03 06:27:10 +11:00
committed by GitHub
parent 38d299dfc0
commit d4d28f2ffe
2 changed files with 7 additions and 1 deletions

View File

@@ -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
View File

@@ -0,0 +1,6 @@
discard """
action: "compile"
cmd: "nim c -d:release -d:futureLogging $file"
"""
import std/asyncdispatch