Only show tokens if in debug

main
Bob Mottram 2019-11-26 18:00:44 +00:00
parent 6f3f5d4edc
commit 26ecb678d4
1 changed files with 2 additions and 1 deletions

View File

@ -940,6 +940,7 @@ class PubServer(BaseHTTPRequestHandler):
return True return True
print('AUTH: nickname '+nickname+' was not found in path '+self.path) print('AUTH: nickname '+nickname+' was not found in path '+self.path)
return False return False
if self.server.debug:
print('AUTH: epicyon cookie authorization failed, header='+self.headers['Cookie'].replace('epicyon=','')+' tokenStr='+tokenStr+' tokens='+str(self.server.tokensLookup)) print('AUTH: epicyon cookie authorization failed, header='+self.headers['Cookie'].replace('epicyon=','')+' tokenStr='+tokenStr+' tokens='+str(self.server.tokensLookup))
return False return False
print('AUTH: Header cookie was not authorized') print('AUTH: Header cookie was not authorized')