summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/util.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-10-05 12:28:14 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-10-07 10:22:36 -0400
commit99b53c1714d302d7f0884e03b5c102081c483504 (patch)
tree82ac74e776a330338bf94563273aa4d33f578877 /src/leap/bitmask/util.py
parent4a471fb8b434d3df07c5de42fc41590b5d9fc5f5 (diff)
[refactor] use new logger infrastructure
Diffstat (limited to 'src/leap/bitmask/util.py')
-rw-r--r--src/leap/bitmask/util.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/leap/bitmask/util.py b/src/leap/bitmask/util.py
index 9120fc40..2cea7d90 100644
--- a/src/leap/bitmask/util.py
+++ b/src/leap/bitmask/util.py
@@ -21,12 +21,14 @@ import os
import platform
import sys
-from twisted.python import log
+from twisted.logger import Logger
from leap.common.files import which
STANDALONE = getattr(sys, 'frozen', False)
+logger = Logger()
+
def here(module=None):
global STANDALONE
@@ -68,8 +70,7 @@ def get_gpg_bin_path():
gpgbin = opt
break
except IndexError as e:
- log.msg("Couldn't find the gpg binary!: %s" % (e,))
- log.exception(e)
+ logger.debug("couldn't find the gpg binary!: %s" % (e,))
if platform.system() == "Darwin":
gpgbin = os.path.abspath(
os.path.join(here(), "apps", "mail", "gpg"))
@@ -87,7 +88,7 @@ def get_gpg_bin_path():
gpgbin = opt
break
except IndexError as e:
- log.msg("Couldn't find the gpg1 binary!: %s" % (e,))
+ logger.debug("couldn't find the gpg1 binary!: %s" % (e,))
if gpgbin is None:
log.msg("Could not find gpg1 binary")