Send debug output to console only for now

This commit is contained in:
Mark Qvist 2022-12-19 02:09:43 +01:00
parent 0abf26d60c
commit e35c0e0be7
1 changed files with 8 additions and 6 deletions

View File

@ -1396,12 +1396,14 @@ class SidebandCore():
self.reticulum = RNS.Reticulum(configdir=self.rns_configdir, loglevel=selected_level) self.reticulum = RNS.Reticulum(configdir=self.rns_configdir, loglevel=selected_level)
if RNS.vendor.platformutils.get_platform() == "android": if RNS.vendor.platformutils.get_platform() == "android":
if self.config["debug"]: # TODO: Just log to console for, but add option to export log
self.reticulum.logdest = RNS.LOG_FILE # files at some point.
if not self.reticulum.is_connected_to_shared_instance: # if self.config["debug"]:
self.reticulum.logfile = self.log_dir+"sideband_service.log" # self.reticulum.logdest = RNS.LOG_FILE
else: # if not self.reticulum.is_connected_to_shared_instance:
self.reticulum.logfile = self.log_dir+"sideband_core.log" # self.reticulum.logfile = self.log_dir+"sideband_service.log"
# else:
# self.reticulum.logfile = self.log_dir+"sideband_core.log"
if not self.reticulum.is_connected_to_shared_instance: if not self.reticulum.is_connected_to_shared_instance:
RNS.log("Running as master or standalone instance, adding interfaces") RNS.log("Running as master or standalone instance, adding interfaces")