Upload server.js
Browse files- src/server.js +5 -5
src/server.js
CHANGED
|
@@ -71,11 +71,11 @@ process.on('SIGINT', () => {
|
|
| 71 |
|
| 72 |
// 启动服务器
|
| 73 |
const server = app.listen(SERVER_CONFIG.PORT, () => {
|
| 74 |
-
logger.logInfo('
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
})
|
| 80 |
console.log(`服务已启动在 http://localhost:${SERVER_CONFIG.PORT}`)
|
| 81 |
})
|
|
|
|
| 71 |
|
| 72 |
// 启动服务器
|
| 73 |
const server = app.listen(SERVER_CONFIG.PORT, () => {
|
| 74 |
+
logger.logInfo('服务器启动', '服务器启动成功', {
|
| 75 |
+
端口: SERVER_CONFIG.PORT,
|
| 76 |
+
地址: `http://localhost:${SERVER_CONFIG.PORT}`,
|
| 77 |
+
Node版本: process.version,
|
| 78 |
+
操作系统: process.platform
|
| 79 |
})
|
| 80 |
console.log(`服务已启动在 http://localhost:${SERVER_CONFIG.PORT}`)
|
| 81 |
})
|