Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#559763: schleuder_logger.rb: undefined local variable or method `file' for ...

0 views
Skip to first unread message

Alster

unread,
Dec 6, 2009, 6:40:02 PM12/6/09
to
Package: schleuder
Version: 2.1.0-1~bpo50+1

On lenny, with the package from lenny-backports, the following error
occurs when invoking schleuder-newlist:

# schleuder-newlist test
/usr/lib/ruby/1.8/schleuder/schleuder_logger.rb:25:in `initialize':
undefined local variable or method `file' for
#<Schleuder::SchleuderLogger:0x7fdb7ab1dfc0> (NameError)
from /usr/lib/ruby/1.8/schleuder/processor.rb:8:in `new'
from /usr/lib/ruby/1.8/schleuder/processor.rb:8:in `log'
from /usr/bin/schleuder-newlist:60:in `process'
from /usr/bin/schleuder-newlist:295
#


I get this with default settings in /etc/schleuder/schleuder.conf

A successfull workaround is to set the following in
/etc/schleuder/schleuder.conf:

lists_logfile: syslog
logfile: syslog

Thanks,

Alster
--
GPG key http://zimmermann.mayfirst.org/pks/lookup?search=0x05059C17
GPG FP 1B8B 128F 8435 541C B3A5 1B7E CF5A 9D55 0505 9C17
Info https://docs.indymedia.org/view/Main/AlsteR

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Jérémy Bobbio

unread,
Jan 2, 2010, 9:30:02 AM1/2/10
to
On Mon, Dec 07, 2009 at 12:27:46AM +0100, Alster wrote:
> On lenny, with the package from lenny-backports, the following error
> occurs when invoking schleuder-newlist:
>
> # schleuder-newlist test
> /usr/lib/ruby/1.8/schleuder/schleuder_logger.rb:25:in `initialize':
> undefined local variable or method `file' for
> #<Schleuder::SchleuderLogger:0x7fdb7ab1dfc0> (NameError)
> from /usr/lib/ruby/1.8/schleuder/processor.rb:8:in `new'
> from /usr/lib/ruby/1.8/schleuder/processor.rb:8:in `log'
> from /usr/bin/schleuder-newlist:60:in `process'
> from /usr/bin/schleuder-newlist:295
> #
>
>
> I get this with default settings in /etc/schleuder/schleuder.conf

Could you verify if you have not modified the `log_rotate_keep` setting?
Setting it greater than "0" was the only way I was able to reproduce
this issue.

In the Debian package, log rotation is handled by logrotate, so there is
normally no need for Schleuder to take care of this.

(There is still an issue in the code, that I'll fix, though.)

Cheers,
--
Jérémy Bobbio .''`.
jeremy...@irq7.fr : : : lu...@debian.org
`. `'`
`-

signature.asc

Alster

unread,
Jan 4, 2010, 7:30:02 PM1/4/10
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Jérémy Bobbio wrote:
> Could you verify if you have not modified the `log_rotate_keep` setting?
> Setting it greater than "0" was the only way I was able to reproduce
> this issue.

That's right, I have set log_rotate_keep to a value greater than 0.
Setting it to 0 works around this bug.

> In the Debian package, log rotation is handled by logrotate, so there is
> normally no need for Schleuder to take care of this.
>
> (There is still an issue in the code, that I'll fix, though.)

Thanks,

Alster
- --


GPG key http://zimmermann.mayfirst.org/pks/lookup?search=0x05059C17
GPG FP 1B8B 128F 8435 541C B3A5 1B7E CF5A 9D55 0505 9C17
Info https://docs.indymedia.org/view/Main/AlsteR

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEAREKAAYFAktChnQACgkQz1qdVQUFnBc7DwCghCpGFStqzhoGjcHjYvU7mYgE
6QQAoKc59umWwmUwpcEdz9ycC+XcCFv8
=sMci
-----END PGP SIGNATURE-----

0 new messages