comparison idavoll/tap_http.py @ 213:a321f9300054

Actually log requests if verbose.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 18 Jun 2009 10:27:11 +0000
parents 274a45d2a5ab
children
comparison
equal deleted inserted replaced
212:edabaa535476 213:a321f9300054
66 # Set up resources for accessing remote pubsub nodes. 66 # Set up resources for accessing remote pubsub nodes.
67 root.child_subscribe = gateway.RemoteSubscribeResource(ss) 67 root.child_subscribe = gateway.RemoteSubscribeResource(ss)
68 root.child_unsubscribe = gateway.RemoteUnsubscribeResource(ss) 68 root.child_unsubscribe = gateway.RemoteUnsubscribeResource(ss)
69 root.child_items = gateway.RemoteItemsResource(ss) 69 root.child_items = gateway.RemoteItemsResource(ss)
70 70
71 if config["verbose"]:
72 root = log.LogWrapperResource(root)
73
71 site = server.Site(root) 74 site = server.Site(root)
72 w = internet.TCPServer(int(config['webport']), channel.HTTPFactory(site)) 75 w = internet.TCPServer(int(config['webport']), channel.HTTPFactory(site))
73 76
74 if config["verbose"]: 77 if config["verbose"]:
75 logObserver = log.DefaultCommonAccessLoggingObserver() 78 logObserver = log.DefaultCommonAccessLoggingObserver()