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

Fix prefix and add info

parent a85e5ba0
No related branches found
No related tags found
No related merge requests found
Pipeline #32399 passed
...@@ -14,7 +14,7 @@ Options: ...@@ -14,7 +14,7 @@ Options:
-l LIGIER_IP The IP of the ligier [default: 127.0.0.1]. -l LIGIER_IP The IP of the ligier [default: 127.0.0.1].
-p LIGIER_PORT The port of the ligier [default: 5553]. -p LIGIER_PORT The port of the ligier [default: 5553].
-o LOG_DIR Directory to dump the messages [default: logs]. -o LOG_DIR Directory to dump the messages [default: logs].
-x PREFIX Prefix for the log files [default: MSG,Born,Died]. -x PREFIX Prefix for the log files [default: MSG].
-h --help Show this screen. -h --help Show this screen.
""" """
...@@ -47,6 +47,7 @@ class MSGDumper(Module): ...@@ -47,6 +47,7 @@ class MSGDumper(Module):
self.current_date = current_date_str() self.current_date = current_date_str()
self.filename = self.prefix + ".log" self.filename = self.prefix + ".log"
self.filepath = os.path.join(self.path, self.filename) self.filepath = os.path.join(self.path, self.filename)
self.cprint("Logging to {}".format(self.filepath))
self.fobj = open(self.filepath, 'a') self.fobj = open(self.filepath, 'a')
def update_file_descriptor(self): def update_file_descriptor(self):
......
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