diff --git a/dstat_interface/errors.py b/dstat_interface/errors.py old mode 100644 new mode 100755 index ac6131079dae72036384922e6a2bc211a80ad0b5..9661262b9a4836198e9f8bcb2781dfee167e3f53 --- 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 1b236e12104f6531169d62d7ba34c0c8bdb42de6..8e731629f4091076d045d58c7031346b24407ae7 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"),