mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user