From e0b13abaf14522d416083cf0ac45390b52549d58 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 16 Mar 1999 03:14:50 +0000 Subject: [PATCH] don't print debug msgs to stderr unless debug is set --- pppd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2