Skip to content
Snippets Groups Projects
Commit 24c4d24d authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Remove old error logger.

parent 00a9e7e1
Branches
Tags
1 merge request!10Move to gtk3 and new command protocol
......@@ -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
......@@ -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"),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment