Trace to stderr, not stdout
This would interfer with stdio communications.
This commit is contained in:
parent
3924e48deb
commit
db06066e17
|
@ -9,8 +9,7 @@ from std/strutils import parseEnum
|
||||||
import ./preserves/private/dot
|
import ./preserves/private/dot
|
||||||
|
|
||||||
when defined(tracePreserves):
|
when defined(tracePreserves):
|
||||||
template trace(args: varargs[untyped]) =
|
template trace(args: varargs[untyped]) = stderr.writeLine(args)
|
||||||
echo args
|
|
||||||
else:
|
else:
|
||||||
template trace(args: varargs[untyped]) = discard
|
template trace(args: varargs[untyped]) = discard
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue