HTTP logging
Jason Friedman
jason at powerpull.net
Mon Feb 20 11:03:25 EST 2012
More information about the Python-list mailing list
Mon Feb 20 11:03:25 EST 2012
- Previous message (by thread): PyKota, Python: AttributeError: 'module' object has no attribute '_quote'
- Next message (by thread): HTTP logging
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am logging to HTTP: logger.addHandler(logging.handlers.HTTPHandler(host, url)) Works great, except if my HTTP server happens to be unavailable: socket.error: [Errno 111] Connection refused Other than wrapping all my logger.log() calls in try/except blocks, is there a way to skip logging to the HTTPhandler if the HTTP server is unavailable?
- Previous message (by thread): PyKota, Python: AttributeError: 'module' object has no attribute '_quote'
- Next message (by thread): HTTP logging
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list