Added log to console option for daemon mode

This commit is contained in:
Mark Qvist 2022-05-18 16:33:28 +02:00
parent a6eac0d7ce
commit 7814712118
3 changed files with 24 additions and 7 deletions

View file

@ -10,7 +10,10 @@ class NoneUI:
self.app = NomadNetworkApp.get_shared_instance()
self.app.ui = self
RNS.log("Nomad Network started in daemon mode, all further messages are logged to "+str(self.app.logfilepath), RNS.LOG_INFO, _override_destination=True)
if not self.app.force_console_log:
RNS.log("Nomad Network started in daemon mode, all further messages are logged to "+str(self.app.logfilepath), RNS.LOG_INFO, _override_destination=True)
else:
RNS.log("Nomad Network daemon started", RNS.LOG_INFO)
while True:
time.sleep(1)