Environment variable for convenient redirection of stdout to stderr

This commit is contained in:
Tony Garnock-Jones 2016-09-13 12:24:53 -04:00
parent bb889542fc
commit 9080396bc5
1 changed files with 3 additions and 0 deletions

View File

@ -211,3 +211,6 @@
(void (when (not (set-empty? flags))
(thread (display-trace (install-trace-procedure!)))))
(when (getenv "SYNDICATE_STDOUT_TO_STDERR")
(current-output-port (current-error-port)))