Add some basic logging to the application. Also for severe errors, track them in info.log file in local folder

This commit is contained in:
Alessandro
2020-04-11 15:27:05 +02:00
parent ab32fbbf98
commit eaeb51de65
10 changed files with 86 additions and 20 deletions

View File

@@ -28,14 +28,13 @@ class ACFValue:
self._description = ""
self._value = value
self._string = self._value
try:
if self._value.isdigit():
self.numeric_value = float(self._value)
except Exception:
self.is_numeric = False
self.numeric_value = 0.0
else:
self.is_numeric = True
self._string += " ms"
else:
self.is_numeric = False
self.numeric_value = 0.0
@classmethod
def list_from_series(cls, series):