Browse Source

🎈 perf(server): 美化了API加载信息

Pchen. 8 months ago
parent
commit
8269f05a64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Server.js

+ 1 - 1
lib/Server.js

@@ -62,7 +62,7 @@ class SERVER {
                     const apiInstance = new APIClass[key]();
                     apiInstance.setupRoute();
                     this.app.use('/', apiInstance.getRouter());
-                    this.logger.info(`已加载API文件: ${filePath}`);
+                    this.logger.info(`已加载API:${apiInstance.path} 类型:${apiInstance.method}`);
                 }
             }
         } catch (error) {