Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
urbaniak committed Jan 28, 2016
1 parent 7d8d3da commit 25eca42
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gunicorn/glogging.py
Expand Up @@ -237,10 +237,9 @@ def log(self, lvl, msg, *args, **kwargs):
def atoms(self, resp, req, environ, request_time):
""" Gets atoms for log formating.
"""
if type(resp.status) is int:
status = resp.status
else:
status = resp.status.split(None, 1)[0]
status = resp.status
if isinstance(status, str):
status = status.split(None, 1)[0]
atoms = {
'h': environ.get('REMOTE_ADDR', '-'),
'l': '-',
Expand Down

0 comments on commit 25eca42

Please sign in to comment.