diff --git a/daemon.py b/daemon.py index b72fa6984..e08a9e535 100644 --- a/daemon.py +++ b/daemon.py @@ -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,