File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -102,3 +102,19 @@ def _get_content_len(self):
102
102
if clen < 0 :
103
103
raise _InvalidPost (403 )
104
104
return clen
105
+
106
+ def log_message (self , format , * args ):
107
+ """Log an arbitrary message.
108
+
109
+ This is used by all other logging functions.
110
+
111
+ It overrides ``BaseHTTPRequestHandler.log_message``, which logs to ``sys.stderr``.
112
+
113
+ The first argument, FORMAT, is a format string for the message to be logged. If the format
114
+ string contains any % escapes requiring parameters, they should be specified as subsequent
115
+ arguments (it's just like printf!).
116
+
117
+ The client ip and current date/time are prefixed to every message.
118
+ """
119
+
120
+ self .logger .debug ("%s - - %s" % (self .address_string (), format % args ))
You can’t perform that action at this time.
0 commit comments