From 16749d0a5848a4b5c94e2f7803f26eea8d7e56f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Fri, 26 Oct 2018 16:31:10 +0200 Subject: [PATCH] Use stderr instead of stdout for debug messages. Avoids polluting the regular application output. --- source/eventcore/internal/utils.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/eventcore/internal/utils.d b/source/eventcore/internal/utils.d index 03223cf..496f94e 100644 --- a/source/eventcore/internal/utils.d +++ b/source/eventcore/internal/utils.d @@ -114,12 +114,12 @@ struct StdoutRange { void put(string str) { - () @trusted { fwrite(str.ptr, str.length, 1, stdout); } (); + () @trusted { fwrite(str.ptr, str.length, 1, stderr); } (); } void put(char ch) { - () @trusted { fputc(ch, stdout); } (); + () @trusted { fputc(ch, stderr); } (); } }