Revert "calc users: log so we can find the root of this problem"

This reverts commit ba6e4721d3.
pull/21/head
Aevann1 2022-11-27 01:10:38 +02:00
parent 14b2b9328a
commit daa9d9c80b
1 changed files with 0 additions and 11 deletions

View File

@ -18,17 +18,6 @@ def session_init():
session["session_id"] = secrets.token_hex(49)
def calc_users(v):
# temp logging code
if not hasattr(g, 'is_api_or_xhr'):
print("calc_users called with missing context data")
if request:
print(f"while serving {request.method} {request.full_path}")
print(f"user agent: {g.agent}")
else:
print("no request context")
print(f"v: {v}")
print(f"db?: {bool(g.db)}")
# end temp logging code
loggedin = cache.get(f'{SITE}_loggedin') or {}
loggedout = cache.get(f'{SITE}_loggedout') or {}
timestamp = int(time.time())