Package: sympa
Version: 5.2.3-1
Severity: minor
Tags: patch
Sympa logs (/var/log/sympa.log) contain error messages complaining for file
/style.css not found :
could not find CSS file /style.css, using default CSS
Such error occurs all the time (each action in wws, acutally), and thus
annoying. I noticed it by using logcheck.
But I think this is actually no error when no css_path was defined (by
default), according to the docs, because in such case, sympa will construct a
dynamic CSS instead of using a predefined static CSS file (css_path + css_url).
So this should only be an info message I think, when no css_path is defined (or
nothing).
Here's a proposed workaround.
/usr/lib/cgi-bin/sympa# diff -uibw wwsympa.fcgi.orig wwsympa.fcgi
--- wwsympa.fcgi.orig 2007-01-23 14:52:04.000000000 +0100
+++ wwsympa.fcgi 2007-01-23 14:49:20.000000000 +0100
@@ -723,7 +723,7 @@
$param->{'css_url'} = &Conf::get_robot_conf($robot, 'css_url');
## If CSS file not found, let Sympa do the job...
unless (-f $param->{'css_path'}.'/style.css') {
- &wwslog('err','Could not find CSS file %s, using default CSS',
$param->{'css_path'}.'/style.css');
+ &wwslog('info','Could not find CSS file %s, using default CSS',
$param->{'css_path'}.'/style.css');
$param->{'css_url'} = $param->{'base_url'}.$param->{'path_cgi'}.'/css';
}
In fact, I think a better algorithm should be needed : if no css_path is
defined, nothing to log, and otherwise, if the file is not found in css_path,
then THERE is an error to log, then.
Hope this helps.
Should probably be forwarded upstream ?
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages sympa depends on:
ii adduser 3.101 Add and remove users and groups
ii debconf [debconf-2.0] 1.5.11 Debian configuration management sy
ii exim4-daemon-light [mail-tra 4.63-12 lightweight exim MTA (v4) daemon
ii libarchive-zip-perl 1.16-1 Module for manipulation of ZIP arc
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libcgi-fast-perl 5.8.8-7 CGI::Fast Perl module
ii libcrypt-ciphersaber-perl 0.61-4 Perl module implementing CipherSab
ii libdbd-mysql-perl 3.0008-1 A Perl5 database interface to the
ii libdbi-perl 1.53-1 Perl5 database interface by Tim Bu
ii libfcgi-perl 0.67-2 FastCGI Perl module
ii libintl-perl 1.16-1 Uniforum message translations syst
ii libio-stringy-perl 2.110-1 Perl5 modules for IO from scalars
ii libmailtools-perl 1.74-1 Manipulate email in perl programs
ii libmd5-perl 2.03-1 backwards-compatible wrapper for D
ii libmime-perl 5.420-0.1 Perl5 modules for MIME-compliant m
ii libmsgcat-perl 1.03-3 Locale::Msgcat perl module
ii libnet-ldap-perl 1:0.33-2 A Client interface to LDAP servers
ii libtemplate-perl 2.14-1 template processing system written
ii libxml-libxml-perl 1.59-2 Perl module for using the GNOME li
ii mhonarc 2.6.16-1 Mail to HTML converter
ii perl [libmime-base64-perl] 5.8.8-7 Larry Wall's Practical Extraction
ii perl-suid 5.8.8-7 Runs setuid Perl scripts
ii sysklogd [system-log-daemon] 1.4.1-18 System Logging Daemon
Versions of packages sympa recommends:
ii doc-base 0.7.21 utilities to manage online documen
ii logrotate 3.7.1-3 Log rotation utility
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]