From b3d2b059ebd58ab661f942745f232cc7009a437d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 May 2020 20:42:08 +0100 Subject: [PATCH] Remove debug --- daemon.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/daemon.py b/daemon.py index bea38e5c..6ca221f0 100644 --- a/daemon.py +++ b/daemon.py @@ -1113,7 +1113,6 @@ class PubServer(BaseHTTPRequestHandler): if 'image/webp' in self.headers['Accept']: favType = 'image/webp' favFilename = 'favicon.webp' - print('Sending webp favicon') # custom favicon faviconFilename = \ self.server.baseDir + '/' + favFilename @@ -1121,13 +1120,11 @@ class PubServer(BaseHTTPRequestHandler): # default favicon faviconFilename = \ self.server.baseDir + '/img/icons/' + favFilename - print('faviconFilename: ' + faviconFilename) if self._etag_exists(faviconFilename): # The file has not changed self._304() return if self.server.iconsCache.get(favFilename): - print('Get favicon from cache') favBinary = self.server.iconsCache[favFilename] self._set_headers_etag(faviconFilename, favType, @@ -1136,9 +1133,7 @@ class PubServer(BaseHTTPRequestHandler): self._write(favBinary) return else: - print('Get favicon from file') if os.path.isfile(faviconFilename): - print('favicon file found') with open(faviconFilename, 'rb') as favFile: favBinary = favFile.read() self._set_headers_etag(faviconFilename, @@ -1147,7 +1142,6 @@ class PubServer(BaseHTTPRequestHandler): callingDomain) self._write(favBinary) self.server.iconsCache[favFilename] = favBinary - print('favicon file send') return self._404() return