self.end_headers()
return body
+ def log_message(self, format, *args):
+ """overrides the parent method log_message()
+ to use the bind10 logging framework.
+ """
+ logger.debug(DBG_STATHTTPD_MESSAGING, STATHTTPD_HTTPLOG,
+ self.address_string(),
+ format%args)
+
class HttpServerError(Exception):
"""Exception class for HttpServer class. It is intended to be
passed from the HttpServer object to the StatsHttpd object."""
error is sent back. As possible cause is that there was an upgrade
problem, and the stats-httpd version is out of sync with the rest of
the system.
+
+% STATHTTPD_HTTPLOG %1 %2
+Debug HTTP log message. These are the messages logged by the http server
+instance. For most logs, the message shows HTTP client and query
+information like HTTP method, URI, and status code, but the http server
+can also log other information, such as extended status reports.