update runtimeCheckLog
This commit is contained in:
		
							parent
							
								
									86efd162c9
								
							
						
					
					
						commit
						0a5dd7ea7e
					
				| 
						 | 
				
			
			@ -9,3 +9,4 @@ SM-
 | 
			
		|||
WS-X68
 | 
			
		||||
WS-X68
 | 
			
		||||
WS-X68
 | 
			
		||||
yellow
 | 
			
		||||
| 
						 | 
				
			
			@ -105,7 +105,6 @@ export async function runtimeCheckLogs(folderPath) {
 | 
			
		|||
                            value +
 | 
			
		||||
                            "'"
 | 
			
		||||
                        );
 | 
			
		||||
                        console.log(checkLog[0].length);
 | 
			
		||||
                        if (checkLog[0].length === 0) {
 | 
			
		||||
                          console.log(content[index]);
 | 
			
		||||
                          await LogReport.create({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -51,7 +51,7 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
 | 
			
		|||
  let listKeyValues = await KeyValue.all();
 | 
			
		||||
  // console.log(listKeyValues)
 | 
			
		||||
  let data = content.data.split("\n");
 | 
			
		||||
console.log(data)
 | 
			
		||||
// console.log(data)
 | 
			
		||||
  data.map((line, index) => {
 | 
			
		||||
    // console.log(line)
 | 
			
		||||
    data[index] = "<span style='background-color:pink;'>" + (index + 1) + "</span>" + line;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue