mirror of
				https://github.com/liberatedsystems/openCom-Companion.git
				synced 2025-07-08 05:07:21 +02:00 
			
		
		
		
	Send debug output to console only for now
This commit is contained in:
		
							parent
							
								
									0abf26d60c
								
							
						
					
					
						commit
						e35c0e0be7
					
				@ -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")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user