From 24c4d24d7a654086f2b9820e78a2620ab3826ef0 Mon Sep 17 00:00:00 2001
From: Michael DM Dryden <mdryden@chem.utoronto.ca>
Date: Mon, 1 May 2017 19:13:04 -0400
Subject: [PATCH] Remove old error logger.

---
 dstat_interface/errors.py            | 12 +-----------
 dstat_interface/interface/adc_pot.py |  3 +--
 2 files changed, 2 insertions(+), 13 deletions(-)
 mode change 100644 => 100755 dstat_interface/errors.py

diff --git a/dstat_interface/errors.py b/dstat_interface/errors.py
old mode 100644
new mode 100755
index ac61310..9661262
--- a/dstat_interface/errors.py
+++ b/dstat_interface/errors.py
@@ -44,14 +44,4 @@ class VarError(Error):
     
     def __init__(self, var, msg):
         self.var = var
-        self.msg = msg
-
-class ErrorLogger(object):
-    def __init__(self, sender="dstat-interface", level=('ERR', 'WAR', 'INFO')):
-        self.sender = str(sender)
-        self.level = level
-        self.levels = ('ERR', 'WAR', 'INFO', 'DBG')
-    
-    def error(self, msg, level):
-        if level in self.level:
-            print "[%s (%s)] %s" % (self.sender, level, str(msg))
\ No newline at end of file
+        self.msg = msg
\ No newline at end of file
diff --git a/dstat_interface/interface/adc_pot.py b/dstat_interface/interface/adc_pot.py
index 1b236e1..8e73162 100755
--- a/dstat_interface/interface/adc_pot.py
+++ b/dstat_interface/interface/adc_pot.py
@@ -26,8 +26,7 @@ except ImportError:
     print "ERR: GTK not available"
     sys.exit(1)
 
-from errors import InputError, VarError, ErrorLogger
-_logger = ErrorLogger(sender="dstat_adc_pot")
+from errors import InputError, VarError
 
 v1_1_gain = [(0, "100 Ω (15 mA FS)", "0"),
              (1, "300 Ω (5 mA FS)", "1"),
-- 
GitLab