瀏覽代碼

Less verbose logging from the JsonDB driver

pull/4/head
Noah Petherbridge 5 年之前
父節點
當前提交
878733a7c5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      rophako/jsondb.py

+ 2
- 2
rophako/jsondb.py 查看文件

@@ -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



Loading…
取消
儲存