diff --git a/src/log.c b/src/log.c index aa633db..1e99cc5 100644 --- a/src/log.c +++ b/src/log.c @@ -16,6 +16,7 @@ */ #include +#include #include #include #include "conf.h" @@ -32,6 +33,8 @@ static void pusb_log_syslog(int level, const char *format, va_list ap) static void pusb_log_output(int level, const char *format, va_list ap) { + if (!isatty(fileno(stdin))) + return ; if (pusb_opts && !pusb_opts->quiet) { if (pusb_opts && pusb_opts->color_log)