summaryrefslogtreecommitdiff
path: root/start_mx.py
diff options
context:
space:
mode:
Diffstat (limited to 'start_mx.py')
-rwxr-xr-xstart_mx.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/start_mx.py b/start_mx.py
index d2905c5..c802852 100755
--- a/start_mx.py
+++ b/start_mx.py
@@ -22,7 +22,7 @@ import ConfigParser
import logging
try:
- from leap.mx import couchdb
+ from leap.mx import couchdbhelper
from leap.mx.alias_resolver import AliasResolverFactory
except ImportError, ie:
print "%s \nExiting... \n" % ie.message
@@ -35,8 +35,6 @@ except ImportError, ie:
print "This software requires Twisted>=12.0.2, please see the README for"
print "help on using virtualenv and pip to obtain requirements."
-logger = logging.getLogger(__name__)
-
if __name__ == "__main__":
epilog = "Copyright 2012 The LEAP Encryption Access Project"
@@ -54,6 +52,8 @@ if __name__ == "__main__":
opts, _ = parser.parse_known_args()
+ logger = logging.getLogger(name='leap')
+
debug = opts.debug
config_file = opts.config
@@ -92,11 +92,11 @@ if __name__ == "__main__":
server = config.get("couchdb", "server")
port = config.get("couchdb", "port")
- cdb = couchdb.ConnectedCouchDB(server,
- port=port,
- dbName="users",
- username=users_user,
- password=users_password)
+ cdb = couchdbhelper.ConnectedCouchDB(server,
+ port=port,
+ dbName="users",
+ username=users_user,
+ password=users_password)
# TODO: use the couchdb for mail