Less verbose logging from the JsonDB driver

pull/4/head
Noah 2016-06-20 18:07:05 +00:00
부모 38594a382b
커밋 878733a7c5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@ -96,7 +96,7 @@ def delete(document):
"""Delete a document from the DB."""
path = mkpath(document)
if os.path.isfile(path):
logger.info("Delete DB document: {}".format(path))
logger.debug("Delete DB document: {}".format(path))
os.unlink(path)
del_cache(document)
@ -253,7 +253,7 @@ def get_cache(key):
if value:
value = json.loads(value)
except:
logger.warning("Redis exception: couldn't get_cache {}".format(key))
logger.debug("Redis exception: couldn't get_cache {}".format(key))
value = None
return value