Use stderr instead of stdout for debug messages.
Avoids polluting the regular application output.
This commit is contained in:
parent
e2e8bf30aa
commit
16749d0a58
|
@ -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); } ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue