Trace to stderr, not stdout

This would interfer with stdio communications.
This commit is contained in:
Emery Hemingway 2022-03-08 15:22:49 -06:00
parent 3924e48deb
commit db06066e17
1 changed files with 1 additions and 2 deletions

View File

@ -9,8 +9,7 @@ from std/strutils import parseEnum
import ./preserves/private/dot
when defined(tracePreserves):
template trace(args: varargs[untyped]) =
echo args
template trace(args: varargs[untyped]) = stderr.writeLine(args)
else:
template trace(args: varargs[untyped]) = discard