| 
					
				 | 
			
			
				@@ -6,6 +6,7 @@ const file = require('./utils/file') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const {logger, fileLogger} = require("./utils/logger"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const {spawn, exec, fork, execSync} = require("child_process"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const path = require("path"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const {ka} = require("date-fns/locale"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const {getAppMap} = require("./robot"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const crypto = require('crypto'); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -73,6 +74,9 @@ function init() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (port !== -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             var logPath = "./logs" + port 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             logger.info(`日志相对地址:${logPath}`) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 将相对路径转换为绝对路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            const directoryPath = path.resolve(logPath); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            file.checkPathSync(directoryPath) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             file.getLastFile(logPath, 10, (fileNameList) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // logger.info('??1:', fileNameList); 
			 |