Skip to content

Commit

Permalink
Change the log format
Browse files Browse the repository at this point in the history
  • Loading branch information
beavailable committed Nov 6, 2021
1 parent 8a82dbc commit dcd4292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def respond_internal_server_error(self):
def log_request(self, code, size=None):
if isinstance(code, HTTPStatus):
code = code.value
self.log_message('%s %s %s', self.command, parse.unquote(self.path), str(code))
self.log_message('%s %s %s', self.command, str(code), parse.unquote(self.path))

def log_message(self, format, *args):
year, month, day, hh, mm, ss, x, y, z = time.localtime()
Expand Down

0 comments on commit dcd4292

Please sign in to comment.