Skip to content

Commit

Permalink
Improved logging. Forgot to remove doublequotes, sorry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen684 committed Jan 22, 2018
1 parent ba35a10 commit 5d079b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brother_ql_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def print_text():
logger.warning('Exception happened: %s', e)
return return_dict

remote_hostinfo = socket.gethostbyaddr("request['REMOTE_ADDR']")
remote_hostinfo = socket.gethostbyaddr(request['REMOTE_ADDR'])
logger.info('IP: %s Hostname: %s Printing: %s', request['REMOTE_ADDR'], remote_hostinfo[0], context['text'])

return_dict['success'] = True
Expand Down

0 comments on commit 5d079b8

Please sign in to comment.