Use UNKNOWN if user agent is missing
This is much shorter and doesn't clutter the log as much.
This commit is contained in:
parent
266dc608f2
commit
c104da28ce
@ -314,7 +314,7 @@ class Application:
|
|||||||
remote_host = environ["REMOTE_HOST"]
|
remote_host = environ["REMOTE_HOST"]
|
||||||
if environ.get("HTTP_X_FORWARDED_FOR"):
|
if environ.get("HTTP_X_FORWARDED_FOR"):
|
||||||
remote_host = environ["HTTP_X_FORWARDED_FOR"]
|
remote_host = environ["HTTP_X_FORWARDED_FOR"]
|
||||||
remote_useragent = "[-no-user-agent-provided-]"
|
remote_useragent = "UNKNOWN"
|
||||||
if environ.get("HTTP_USER_AGENT"):
|
if environ.get("HTTP_USER_AGENT"):
|
||||||
remote_useragent = environ["HTTP_USER_AGENT"]
|
remote_useragent = environ["HTTP_USER_AGENT"]
|
||||||
depthinfo = ""
|
depthinfo = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user