Log HTTP events through regular logging
This commit is contained in:
parent
e262af4acf
commit
1275352576
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||||
post_body = self.rfile.read(content_length)
|
post_body = self.rfile.read(content_length)
|
||||||
self._handle("post", parsed.path, data=post_body, params=post_params)
|
self._handle("post", parsed.path, data=post_body, params=post_params)
|
||||||
|
|
||||||
|
def log_message(self, format, *args):
|
||||||
|
_log.info(format, args)
|
||||||
|
|
||||||
@utils.export("botset", {"setting": "rest-api",
|
@utils.export("botset", {"setting": "rest-api",
|
||||||
"help": "Enable/disable REST API",
|
"help": "Enable/disable REST API",
|
||||||
"validate": utils.bool_or_none})
|
"validate": utils.bool_or_none})
|
||||||
|
|
Loading…
Reference in a new issue