Skip to content
Snippets Groups Projects
Commit 4428c9e0 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Improve formatting

parent b37f2eec
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,6 @@ class MSGDumper(Module):
def process(self, blob):
data = blob['CHData'].decode()
log_level = 'info'
if "ERROR" in data:
log_level = 'error'
if "WARNING" in data:
log_level = 'warning'
source = "Other"
if " F0" in data:
source = "DataFilter"
......@@ -44,8 +39,8 @@ class MSGDumper(Module):
if " W0" in data:
source = "DataWriter"
entry = "{} [{}] - {}: {}\n".format(self.filename, source, log_level,
data)
entry = "{} [{}]: {}\n".format(
os.path.basename(self.filename), source, data)
self.fobj.write(entry)
return blob
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment