Tags:
archive_me1Add my vote for this tag create new tag
, view all tags

Feature Proposal: Removing warnings from Apache's error_log

Motivation

i've created this topic because i'm clearing warnings from apache's error_log as i discover fixes. (and SVN checkin needs a topic to attach fixes to)

Description

Impact and Available Solutions

WhatDoesItAffect: Refactoring, Performance
AffectedExtensions:  
HaveQuickFixFor:  

-- WillNorris - 07 Feb 2005


Discussion:

It would be good to have some way to get a more visible alert when an error is output.

-- CrawfordCurrie - 03 Mar 2005

tail -f error_log ? wink

do you want a variable which would capture STDERR and append the error text to the bottom of the rendered page?

-- WillNorris - 24 Apr 2005

Is it correct that apaches error_log gets filled with messages like:

...
Name "TWiki::doLogTopicChanges" used only once: possible typo at /home/httpd/twiki/bin/testenv line 160.
Name "TWiki::siteWebTopicName" used only once: possible typo at /home/httpd/twiki/bin/testenv line 126.
Name "TWiki::mailProgram" used only once: possible typo at /home/httpd/twiki/bin/testenv line 111.
[Wed Apr 27 15:35:42 2005] testenv: Use of uninitialized value in concatenation (.) or string at /home/httpd/twiki/lib/TWiki.pm line 252.
[Wed Apr 27 15:35:42 2005] testenv: Use of uninitialized value in concatenation (.) or string at /home/httpd/twiki/lib/TWiki.pm line 349.
[Wed Apr 27 15:35:42 2005] testenv: Use of uninitialized value in concatenation (.) or string at /home/httpd/twiki/lib/TWiki.pm line 350.
[Wed Apr 27 15:35:47 2005] testenv: Argument "grep)" isn't numeric in numeric lt (<) at /home/httpd/twiki/bin/testenv line 750.
[Wed Apr 27 15:35:50 2005] testenv: Argument "grep)" isn't numeric in numeric lt (<) at /home/httpd/twiki/bin/testenv line 750.
whenever I run testenv on latest SVN checkout (DEVELOP)?

-- FranzJosefSilli - 27 Apr 2005

any volunteers to fix these few remaining warnings? it's probably not too difficult, and doesn't require knowledge of TWiki internals? please help ship the DakarRelease smile

-- WillNorris - 26 May 2005

[Sun May 29 23:48:09 2005] register.cgi: Use of uninitialized value in string eq at /home/.galateadryer/twikizen/kupu.skyloom.com/cgi-bin/lib/TWiki/UI/Register.pm line 79.
[Sun May 29 23:48:09 2005] register.cgi: Use of uninitialized value in substitution iterator at /home/.galateadryer/twikizen/kupu.skyloom.com/cgi-bin/lib/TWiki/UI/Register.pm line 1046.

-- WillNorris - 30 May 2005

TWiki.pm contains the following:

BEGIN{
    if( DEBUG ) {
        $SIG{'__WARN__'} = sub { die @_ };
    }
}
If you are concerned about warnings - and you probably should be - then turn on DEBUG. You can do this by defining the environment variable $TWIKI_ASSERTS in setlib.cfg, thus:
$ENV{TWIKI_ASSERTS} = 1;

-- CrawfordCurrie - 19 Jun 2005

sorry, redirecting warnings to a file does not warrant closing this bug. unless you are also saying that there aren't any warnings anymore...

-- WillNorris - 19 Jun 2005

Precisely. There are only errors, if TWIKI_ASSERTS is enabled (which it should be for all but production releases). TWIKI_ASSERS can also be enabled on an installation if debugging is called for.

-- CrawfordCurrie - 20 Jun 2005

Note that testenv has been replaced by configure, and the testemnv reports above no longer apply. The other reports have no information about the context in which they were seen, so I can't verify they are fixed. Future reports on this subject need to be added to the Bugs web where they can be tracked as errors.

-- CrawfordCurrie - 21 Jun 2005

Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2008-09-12 - TWikiJanitor
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.