Re: Can anyone explain this stuff in my apache error_log please
Chris G <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <20071010213827.GD27307@newred> |
On Wed, Oct 10, 2007 at 11:52:13AM -0400, will wrote:
> PyBlosxom has its own logging system which if you haven't set it up will
> log to stderr and thus make it into your Apache logs. If you do set it
> up, it's just as easy to log messages and follow them and you end up
> with more information since you can specify logging levels.
>
Yes, OK, thanks for the reminder, I have now set up logging in
my pyBlosxom.
> Given that, these lines that are logged are probably from either
> PyBlosxom itself or from somewhere in one of the other plugins. Beyond
> that, I don't know what's going on--I'd have to look into it.
>
It seems to me that the apache 2.2 error_log file is *much* noisier
than the apache 1.3 one ever was. An error in pyBlosxom under apache
1.3 gave a nice straightforward trace-back, under 2.2 it produces far
too much output with too much on each line. For example a simple
syntax error in my plugin produces the following:-
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] Traceback (most recent call last):, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] File "/usr/lib64/python2.5/wsgiref/handlers.py", line 92, in run, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] self.result = application(self.environ, self.start_response), referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 485, in __call__, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] p.run(), referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 185, in run, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] self.initialize(), referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 127, in initialize, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] config.get("load_plugins", None)), referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] File "/usr/lib/python2.5/site-packages/Pyblosxom/plugin_utils.py", line 102, in initialize_plugins, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] _module = __import__(mem), referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] File "/home/chris/webdev/pb/plugins/infowiki.py", line 128, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] if x[:5] != "wiki", referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] , referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] ^, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
[Wed Oct 10 22:16:49 2007] [error] [client 192.168.1.1] SyntaxError: invalid syntax, referer: http://home.isbd.net/cgi-bin/pyblosxom.cgi/wiki/garden/index
but the apache 1.3 error log is like this:-
Traceback (most recent call last):
File "/usr/lib/python2.5/wsgiref/handlers.py", line 92, in run
self.result = application(self.environ, self.start_response)
File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 485, in >
p.run()
File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 185, in >
self.initialize()
File "/usr/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py", line 127, in >
config.get("load_plugins", None))
File "/usr/lib/python2.5/site-packages/Pyblosxom/plugin_utils.py", line 102, >
_module = __import__(mem)
File "/home/chris/webdev/pb/plugins/mywiki.py", line 290
def makeIndex(thisDir)
None of the "referer:" stuff and none of the date/time and client stuff,
much, much easier to use.
--
Chris Green
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/