Re-enable debug

main
Bob Mottram 2023-01-17 14:29:12 +00:00
parent db070ac0f7
commit b6865be910
1 changed files with 5 additions and 5 deletions

View File

@ -15768,11 +15768,11 @@ class PubServer(BaseHTTPRequestHandler):
# for news instances if not logged in then show the
# front page
divert_path = '/users/news'
# if debug:
print('DEBUG: divert_to_login_screen=' +
str(divert_to_login_screen))
print('DEBUG: authorized=' + str(authorized))
print('DEBUG: path=' + path)
if debug:
print('DEBUG: divert_to_login_screen=' +
str(divert_to_login_screen))
print('DEBUG: authorized=' + str(authorized))
print('DEBUG: path=' + path)
if calling_domain.endswith('.onion') and onion_domain:
self._redirect_headers('http://' +
onion_domain + divert_path,