Browse Source

Redirect 'INFO' log to stdout

Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
pull/1648/head
Xingwang Liao 7 years ago
committed by Max Lv
parent
commit
f1fde57111
1 changed files with 2 additions and 2 deletions
  1. 4
      src/utils.h

4
src/utils.h

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

Loading…
Cancel
Save