Update logging

Fix sort order author
Fixes sorting view
Moved version info
added feature limit listening to single ipaddress
This commit is contained in:
Ozzieisaacs
2019-06-10 14:15:21 +02:00
parent 14b6202eec
commit 546ed65e1d
25 changed files with 401 additions and 242 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ import hashlib
from . import logger
log = logger.create()
# log = logger.create()
def init_cache_busting(app):
@@ -40,7 +40,7 @@ def init_cache_busting(app):
hash_table = {} # map of file hashes
log.debug('Computing cache-busting values...')
logger.debug('Computing cache-busting values...')
# compute file hashes
for dirpath, __, filenames in os.walk(static_folder):
for filename in filenames:
@@ -53,7 +53,7 @@ def init_cache_busting(app):
file_path = rooted_filename.replace(static_folder, "")
file_path = file_path.replace("\\", "/") # Convert Windows path to web path
hash_table[file_path] = file_hash
log.debug('Finished computing cache-busting values')
logger.debug('Finished computing cache-busting values')
def bust_filename(filename):
return hash_table.get(filename, "")