Update logging
Fix sort order author Fixes sorting view Moved version info added feature limit listening to single ipaddress
This commit is contained in:
+3
-3
@@ -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, "")
|
||||
|
||||
Reference in New Issue
Block a user