# HG changeset patch # User Ralph Meijer # Date 1245320831 0 # Node ID a321f9300054dbce399536cf3a637cc41ce8f9aa # Parent edabaa535476d5b2a2f5e23aad535799d156b677 Actually log requests if verbose. diff -r edabaa535476 -r a321f9300054 idavoll/error.py --- a/idavoll/error.py Wed Apr 08 09:07:28 2009 +0000 +++ b/idavoll/error.py Thu Jun 18 10:27:11 2009 +0000 @@ -4,6 +4,10 @@ class Error(Exception): msg = '' + def __init__(self, msg=None): + self.msg = msg or self.msg + + def __str__(self): return self.msg diff -r edabaa535476 -r a321f9300054 idavoll/tap_http.py --- a/idavoll/tap_http.py Wed Apr 08 09:07:28 2009 +0000 +++ b/idavoll/tap_http.py Thu Jun 18 10:27:11 2009 +0000 @@ -68,6 +68,9 @@ root.child_unsubscribe = gateway.RemoteUnsubscribeResource(ss) root.child_items = gateway.RemoteItemsResource(ss) + if config["verbose"]: + root = log.LogWrapperResource(root) + site = server.Site(root) w = internet.TCPServer(int(config['webport']), channel.HTTPFactory(site))