From 26ecb678d4d9413285d5ae3f1c82b076c2834df2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 26 Nov 2019 18:00:44 +0000 Subject: [PATCH] Only show tokens if in debug --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 508ed765..8393f6b5 100644 --- a/daemon.py +++ b/daemon.py @@ -940,7 +940,8 @@ class PubServer(BaseHTTPRequestHandler): return True print('AUTH: nickname '+nickname+' was not found in path '+self.path) return False - print('AUTH: epicyon cookie authorization failed, header='+self.headers['Cookie'].replace('epicyon=','')+' tokenStr='+tokenStr+' tokens='+str(self.server.tokensLookup)) + if self.server.debug: + print('AUTH: epicyon cookie authorization failed, header='+self.headers['Cookie'].replace('epicyon=','')+' tokenStr='+tokenStr+' tokens='+str(self.server.tokensLookup)) return False print('AUTH: Header cookie was not authorized') return False