Redirect 'INFO' log to stdout

Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
This commit is contained in:
Xingwang Liao
2017-08-24 17:48:02 +08:00
committed by Max Lv
parent a489834204
commit f1fde57111
+2 -2
View File
@@ -118,10 +118,10 @@ extern int use_syslog;
char timestr[20]; \
strftime(timestr, 20, TIME_FORMAT, localtime(&now)); \
if (use_tty) { \
fprintf(stderr, "\e[01;32m %s INFO: \e[0m" format "\n", timestr, \
fprintf(stdout, "\e[01;32m %s INFO: \e[0m" format "\n", timestr, \
## __VA_ARGS__); \
} else { \
fprintf(stderr, " %s INFO: " format "\n", timestr, \
fprintf(stdout, " %s INFO: " format "\n", timestr, \
## __VA_ARGS__); \
} \
} \