Use stderr instead of stdout for debug messages.

Avoids polluting the regular application output.
This commit is contained in:
Sönke Ludwig 2018-10-26 16:31:10 +02:00
parent e2e8bf30aa
commit 16749d0a58

View file

@ -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); } ();
}
}