Less verbose logging from the JsonDB driver
This commit is contained in:
parent
38594a382b
commit
878733a7c5
|
@ -96,7 +96,7 @@ def delete(document):
|
||||||
"""Delete a document from the DB."""
|
"""Delete a document from the DB."""
|
||||||
path = mkpath(document)
|
path = mkpath(document)
|
||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
logger.info("Delete DB document: {}".format(path))
|
logger.debug("Delete DB document: {}".format(path))
|
||||||
os.unlink(path)
|
os.unlink(path)
|
||||||
del_cache(document)
|
del_cache(document)
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ def get_cache(key):
|
||||||
if value:
|
if value:
|
||||||
value = json.loads(value)
|
value = json.loads(value)
|
||||||
except:
|
except:
|
||||||
logger.warning("Redis exception: couldn't get_cache {}".format(key))
|
logger.debug("Redis exception: couldn't get_cache {}".format(key))
|
||||||
value = None
|
value = None
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user