commit f53777adfd221b9774d53741691b4dc93ae7f139
parent ebd47044bc2d1ff1de5514cd655fc005ff1c44e4
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 9 May 2022 09:41:09 +0200
log: write to stderr by default
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/log/global.ha b/log/global.ha
@@ -7,12 +7,12 @@ export let global: *logger = &_global;
let _global: stdlogger = stdlogger {
println = &log_println,
printfln = &log_printfln,
- sink = 0: io::file,
+ sink = -1: io::file,
};
@init fn init() void = {
// XXX: Would be nice not to have to do this
- _global.sink = os::stdout;
+ _global.sink = os::stderr;
};
// Sets the global logger instance to the provided logger.