浏览代码

feat: 修改aFunCoreInit的日志

SongZihuan 3 年之前
父节点
当前提交
05ee1def13
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      src/core/core_init.c

+ 3 - 4
src/core/core_init.c

@@ -49,22 +49,20 @@ bool aFunCoreInit(aFunCoreInitInfo *info) {
     initLogger(aFunCoreLogger, "aFunlang-core", info->level);
     aFunCoreLogger->buf = info->buf;
 
-    writeDebugLog(aFunCoreLogger, "aFunCore init success");
     writeDebugLog(aFunCoreLogger, "aFunCore log path: %s", log_path);
-    writeDebugLog(aFunCoreLogger, "aFunCore var/lib path: %s", varlib_path);
+    writeDebugLog(aFunCoreLogger, "aFunCore var.lib path: %s", varlib_path);
     writeDebugLog(aFunCoreLogger, "aFunCore lang path: %s", lang_path);
 
     char LANG_path[218] = {0};
     snprintf(LANG_path, 218, "%sLANG", lang_path);
 
     FILE *LANG_file = fopen(LANG_path, "r");
-    writeDebugLog(aFunCoreLogger, "LANG_path = %s", LANG_path);
     if (LANG_file != NULL) {
         char LANG[100] = {0};
         fgets(LANG, 100, LANG_file);
         if (LANG[strlen(LANG) - 1] == '\n')
             LANG[strlen(LANG) - 1] = NUL;  // 去除`\n`
-        writeDebugLog(aFunCoreLogger, "LANG = %s", LANG);
+        writeDebugLog(aFunCoreLogger, "language = %s", LANG);
 
         char LANG_lib[218] = {0};
         snprintf(LANG_lib, 218, "%s" SHARED_PREFIX "%s" SHARED_SUFFIX, lang_path, LANG);
@@ -75,5 +73,6 @@ bool aFunCoreInit(aFunCoreInitInfo *info) {
         fclose(LANG_file);
     } else
         HT_initaFunGetText(NULL);
+    writeDebugLog(aFunCoreLogger, "aFunCore init success");
     return true;
 }