mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 05:42:54 +00:00 
			
		
		
		
	Rework ProcessManagingEH log API
This commit is contained in:
		@@ -35,5 +35,8 @@ class SupervisorLogMixin(SupervisorBaseMixin):
 | 
			
		||||
 | 
			
		||||
    def clear_logs(self, process_name):
 | 
			
		||||
        for logfile in ('stdout_logfile', 'stderr_logfile'):
 | 
			
		||||
            remove(self.supervisor.getProcessInfo(process_name)[logfile])
 | 
			
		||||
            try:
 | 
			
		||||
                remove(self.supervisor.getProcessInfo(process_name)[logfile])
 | 
			
		||||
            except FileNotFoundError:
 | 
			
		||||
                pass
 | 
			
		||||
        self.supervisor.clearProcessLogs(process_name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user