diff --git a/deployutils/logging.py b/deployutils/logging.py
index <HASH>..<HASH> 100644
--- a/deployutils/logging.py
+++ b/deployutils/logging.py
@@ -48,6 +48,11 @@ class RequestFilter(logging.Filter):
                 record.username = '-'
             meta = getattr(request, 'META', {})
             record.remote_addr = meta.get('REMOTE_ADDR', '-')
+            record.http_user_agent = meta.get('HTTP_USER_AGENT', '-')
+        else:
+            record.username = '-'
+            record.remote_addr = '-'
+            record.http_user_agent = '-'
         return True
avoids exception while logging (take 2)