From e35c0e0be7bdba113061cbf719100d491206dc5e Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 19 Dec 2022 02:09:43 +0100 Subject: [PATCH] Send debug output to console only for now --- sbapp/sideband/core.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index 5ccac51..48dd9d1 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -1396,12 +1396,14 @@ class SidebandCore(): self.reticulum = RNS.Reticulum(configdir=self.rns_configdir, loglevel=selected_level) if RNS.vendor.platformutils.get_platform() == "android": - if self.config["debug"]: - self.reticulum.logdest = RNS.LOG_FILE - if not self.reticulum.is_connected_to_shared_instance: - self.reticulum.logfile = self.log_dir+"sideband_service.log" - else: - self.reticulum.logfile = self.log_dir+"sideband_core.log" + # TODO: Just log to console for, but add option to export log + # files at some point. + # if self.config["debug"]: + # self.reticulum.logdest = RNS.LOG_FILE + # if not self.reticulum.is_connected_to_shared_instance: + # 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: RNS.log("Running as master or standalone instance, adding interfaces")