Revert "don't want to crash on our precious logging code"

This reverts commit 992e4a0d1c.
pull/21/head
Aevann1 2022-11-27 01:08:44 +02:00
parent 27bb38c0d5
commit 14b2b9328a
1 changed files with 2 additions and 2 deletions

View File

@ -23,11 +23,11 @@ def calc_users(v):
print("calc_users called with missing context data")
if request:
print(f"while serving {request.method} {request.full_path}")
print(f"user agent: {getattr(g, 'agent', '-attribute not present-')}")
print(f"user agent: {g.agent}")
else:
print("no request context")
print(f"v: {v}")
print(f"db?: {bool(getattr(g, 'db', None))}")
print(f"db?: {bool(g.db)}")
# end temp logging code
loggedin = cache.get(f'{SITE}_loggedin') or {}
loggedout = cache.get(f'{SITE}_loggedout') or {}