odyssey: set correct fd for stdout logging. fix #10

This commit is contained in:
Dmitry Simonenko 2018-06-04 15:40:10 +03:00
parent 43851a8ccc
commit e833e62b7f
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ void od_logger_write(od_logger_t *logger, od_logger_level_t level,
(void)write(logger->fd, output, len);
}
if (logger->log_stdout) {
(void)write(0, output, len);
(void)write(STDOUT_FILENO, output, len);
}
if (logger->log_syslog) {
syslog(od_log_syslog_level[level], "%.*s", len, output);