diff --git a/telegram/utils/webhookhandler.py b/telegram/utils/webhookhandler.py index 92ad280c5d8..9d23aef9cb7 100644 --- a/telegram/utils/webhookhandler.py +++ b/telegram/utils/webhookhandler.py @@ -102,3 +102,19 @@ def _get_content_len(self): if clen < 0: raise _InvalidPost(403) return clen + + def log_message(self, format, *args): + """Log an arbitrary message. + + This is used by all other logging functions. + + It overrides ``BaseHTTPRequestHandler.log_message``, which logs to ``sys.stderr``. + + The first argument, FORMAT, is a format string for the message to be logged. If the format + string contains any % escapes requiring parameters, they should be specified as subsequent + arguments (it's just like printf!). + + The client ip is prefixed to every message. + """ + + self.logger.debug("%s - - %s" % (self.address_string(), format % args))
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: