From: Paul Mackerras Date: Tue, 16 Mar 1999 03:14:50 +0000 (+0000) Subject: don't print debug msgs to stderr unless debug is set X-Git-Tag: ppp-2.4.7~795 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=e0b13abaf14522d416083cf0ac45390b52549d58 don't print debug msgs to stderr unless debug is set --- diff --git a/pppd/main.c b/pppd/main.c index c3d72a2..3e7ea42 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.59 1999/03/16 02:50:15 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.60 1999/03/16 03:14:50 paulus Exp $"; #endif #include @@ -1925,7 +1925,7 @@ logit(level, fmt, args) n = vslprintf(buf, sizeof(buf), fmt, args); syslog(level, "%s", buf); - if (log_to_stderr) { + if (log_to_stderr && (level != LOG_DEBUG || debug)) { if (write(2, buf, n) != n || (buf[n-1] != '\n' && write(2, &nl, 1) != 1)) log_to_stderr = 0;