diff options
| author | 2018-11-14 23:01:22 +0000 | |
|---|---|---|
| committer | 2018-11-14 23:01:22 +0000 | |
| commit | 127535257608f092e0337716b316d9f8ab09ff18 (patch) | |
| tree | 5672396917da61a34542824ed83afb847c6e3524 /modules/rest_api.py | |
| parent | 'self.message.*' now uses 'send.message.*' (diff) | |
| signature | ||
Log HTTP events through regular logging
Diffstat (limited to 'modules/rest_api.py')
| -rw-r--r-- | modules/rest_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py index 2ef4661e..79b7f0b2 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -78,6 +78,9 @@ class Handler(http.server.BaseHTTPRequestHandler): post_body = self.rfile.read(content_length) 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", "help": "Enable/disable REST API", "validate": utils.bool_or_none}) |
