Package: ppp Version: 2.4.4rel-9 Severity: wishlist Tags: patch
If /var/log/ppp.log is not used, plog does a tail and pipes it through grep. If other log lines were appended since the last ppp log message, plog will often show nothing. The output from plog would be more helpful, if the output of grep would be piped through tail instead. The (trivial) patch is attached. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.23.12-lci Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages ppp depends on: ii libc6 2.7-5 GNU C Library: Shared libraries ii libpam-modules 0.99.7.1-5 Pluggable Authentication Modules f ii libpam-runtime 0.99.7.1-5 Runtime support for the PAM librar ii libpam0g 0.99.7.1-5 Pluggable Authentication Modules l ii libpcap0.8 0.9.8-2 System interface for user-level pa ii netbase 4.30 Basic TCP/IP networking system ii procps 1:3.2.7-5 /proc file system utilities ppp recommends no packages. -- no debconf information
--- plog.orig 2008-01-19 22:11:40.000000000 +0100 +++ plog 2008-01-19 22:11:07.000000000 +0100 @@ -3,5 +3,5 @@ if [ -s /var/log/ppp.log ]; then exec tail "$@" /var/log/ppp.log else - exec tail "$@" /var/log/syslog | grep ' \(pppd\|chat\)\[' + exec grep ' \(pppd\|chat\)\[' /var/log/syslog | tail "$@" fi

