mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-21 21:23:42 +00:00
Redirect 'INFO' log to stdout
Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
This commit is contained in:
+2
-2
@@ -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__); \
|
||||
} \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user