Foswiki General Assembly will be held on 28th November 2019, 1200 UTC on Freenode IRC channel #foswiki-association. See AgendaTenthGeneralAssembly

Item1855: Internal Error on any operation when Foswiki::Logger implementation is set to none

Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Reported By: RafaelAlvarez
Waiting For:
Last Change By: KennethLavrsen
To test, change the {Log}{Implementation} setting to "none" from the configure interface. The culprit is the method Foswiki::logger, which does eval "require $Foswiki::cfg{Log}{Implementation}" without checking if the setting is a valid implementation.

I think that there should be a logger implementation that does nothing, and it sould be used when the setting is set to "none". That is way better than to check of undef each time the logger is used.

BTW, the documentation of Foswiki::logger has a copy/paste error, it is the same as the Foswiki::i18n method.

Flagged as "Urgent" as it prevents the normal operation of Foswiki. Perhaps it can be downgraded to "Normal" as it only affect "Expert" users that change the setting from its default.

-- RafaelAlvarez - 27 Jul 2009

Yeah, Normal. Confirmed and downgraded.

-- CrawfordCurrie - 27 Jul 2009

Fixed on trunk

-- CrawfordCurrie - 27 Jul 2009

ItemTemplate edit

Summary Internal Error on any operation when Foswiki::Logger implementation is set to none
ReportedBy RafaelAlvarez
Codebase trunk
SVN Range 4545
AppliesTo Engine
Priority Normal
CurrentState Closed
Checkins distro:c0b5eb531036
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r6 - 04 Oct 2010, KennethLavrsen - This page was cached on 16 Nov 2019 - 08:22.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy