Browse Source

startup log upgrade

zhangtong 2 years ago
parent
commit
b1f34c4c64

+ 1 - 0
src/main/java/com/sagacloud/dict/TypeToInfosMap.java

@@ -89,6 +89,7 @@ public class TypeToInfosMap {
         try {
             log.info("======init====== TypeToInfosMap.synCache(): getAllInfoPoints()");
             JSONObject json = getAllInfoPoints();
+            log.info("======init====== TypeToInfosMap.synCache(): json.keySet().forEach()");
             ObjectMapper mapper = new ObjectMapper();
             TypeFactory typeFactory = mapper.getTypeFactory();
             json.keySet().forEach(key -> {

+ 2 - 0
src/main/java/com/sagacloud/utils/OssUtils.java

@@ -92,11 +92,13 @@ public class OssUtils {
         OSSObject ossObject = null;
         InputStream inputStream = null;
         try {
+            log.info("======init====== OssUtils.getOssFileAsString(" + filePath + ") start");
             ossObject = OssUtils.client.getObject(OssUtils.getProperty("oss.bucketName"),
                     String.join("/", OssUtils.getProperty("oss.basePath"), filePath));
 //            ClientConfiguration cf = OssUtils.client.getClientConfiguration();
 //            cf.setSLDEnabled(true);
             inputStream = ossObject.getObjectContent();
+            log.info("======init====== OssUtils.getOssFileAsString(" + filePath + ") end");
             return IOUtils.toString(inputStream);
         }catch (Exception e){
             throw e;