summaryrefslogtreecommitdiff
path: root/src/db/dictionary.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/dictionary.py')
-rwxr-xr-xsrc/db/dictionary.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/db/dictionary.py b/src/db/dictionary.py
index f0f5fe9..bd468f1 100755
--- a/src/db/dictionary.py
+++ b/src/db/dictionary.py
@@ -11,9 +11,13 @@ import os
import sys
import time
+from log import get_logger
+
from db import couch
from db.schema import as_index_list, validate_collector_data
+logger = get_logger()
+
class DictDB():
def __init__(self):
@@ -42,9 +46,9 @@ class DictDB():
try:
self.couchdb = self.server.database(self.database)
- print("Database already exists")
+ logger.debug("Database already exists")
except couch.exceptions.NotFound:
- print("Creating database and indexes.")
+ logger.debug("Creating database and indexes.")
self.couchdb = self.server.create(self.database)
for i in as_index_list():