mirror of
				https://gitee.com/BDWare/cm
				synced 2025-11-03 18:12:16 +00:00 
			
		
		
		
	optimize logs
This commit is contained in:
		
							parent
							
								
									8efc164d99
								
							
						
					
					
						commit
						c96ab57b17
					
				@ -337,20 +337,20 @@ public class ContractClient {
 | 
				
			|||||||
        LOGGER.info("start status, port:" + port + " status:" + status);
 | 
					        LOGGER.info("start status, port:" + port + " status:" + status);
 | 
				
			||||||
        ContractResult r = JsonUtil.fromJson(status, ContractResult.class);
 | 
					        ContractResult r = JsonUtil.fromJson(status, ContractResult.class);
 | 
				
			||||||
        if (r.status == Status.Success) {
 | 
					        if (r.status == Status.Success) {
 | 
				
			||||||
 | 
					            LOGGER.info("init prop start!");
 | 
				
			||||||
            initProps();
 | 
					            initProps();
 | 
				
			||||||
 | 
					            LOGGER.info("init prop done!");
 | 
				
			||||||
            get.syncGet("", "setPID", pid);
 | 
					            get.syncGet("", "setPID", pid);
 | 
				
			||||||
        } else if (r.status == null) {
 | 
					        } else {
 | 
				
			||||||
 | 
					            LOGGER.info("kill contract");
 | 
				
			||||||
 | 
					            if (r.status == null) {
 | 
				
			||||||
                r.status = Status.Error;
 | 
					                r.status = Status.Error;
 | 
				
			||||||
                r.result = new JsonPrimitive(status);
 | 
					                r.result = new JsonPrimitive(status);
 | 
				
			||||||
            status = JsonUtil.toJson(r);
 | 
					 | 
				
			||||||
            contractMeta.name = get.syncGet("", "getContractName", "");
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        if (r.status != Status.Success) {
 | 
					 | 
				
			||||||
            killProcess();
 | 
					            killProcess();
 | 
				
			||||||
            throw new IllegalStateException(r.result.getAsString());
 | 
					            throw new IllegalStateException(r.result.getAsString());
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return status;
 | 
					        return status;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void updateMemory() {
 | 
					    public void updateMemory() {
 | 
				
			||||||
 | 
				
			|||||||
@ -54,7 +54,6 @@ public class YPKResourceManager {
 | 
				
			|||||||
        File dir = new File(destDir);
 | 
					        File dir = new File(destDir);
 | 
				
			||||||
        if (!dir.exists())
 | 
					        if (!dir.exists())
 | 
				
			||||||
            dir.mkdirs();
 | 
					            dir.mkdirs();
 | 
				
			||||||
 | 
					 | 
				
			||||||
        byte[] buffer = new byte[1024];
 | 
					        byte[] buffer = new byte[1024];
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            ZipInputStream zis = new ZipInputStream(new FileInputStream(zipFilePath));
 | 
					            ZipInputStream zis = new ZipInputStream(new FileInputStream(zipFilePath));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user