| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -240,7 +240,7 @@ to a handler. Code to create and run the server looks like this:: | |||
| 240 | 240 | to create custom error logging mechanisms. The *format* argument is a | |
| 241 | 241 | standard printf-style format string, where the additional arguments to | |
| 242 | 242 | :meth:`log_message` are applied as inputs to the formatting. The client | |
| 243 | - address and current date and time are prefixed to every message logged. | ||
| 243 | + ip address and current date and time are prefixed to every message logged. | ||
| 244 | 244 | ||
| 245 | 245 | ||
| 246 | 246 | .. method:: version_string() | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -447,13 +447,13 @@ def log_message(self, format, *args): | |||
| 447 | 447 | specified as subsequent arguments (it's just like | |
| 448 | 448 | printf!). | |
| 449 | 449 | ||
| 450 | - The client host and current date/time are prefixed to | ||
| 451 | - every message. | ||
| 450 | + The client ip address and current date/time are prefixed to every | ||
| 451 | + message. | ||
| 452 | 452 | ||
| 453 | 453 | """ | |
| 454 | 454 | ||
| 455 | 455 | sys.stderr.write("%s - - [%s] %s\n" % | |
| 456 | - (self.address_string(), | ||
| 456 | + (self.client_address[0], | ||
| 457 | 457 | self.log_date_time_string(), | |
| 458 | 458 | format%args)) | |
| 459 | 459 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments