Skip to content

Commit

Permalink
细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
TimeRainStarSky committed May 27, 2024
1 parent 48707b6 commit f97809c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/config/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ export class Redis {
]
Bot.makeLog("info", ["正在启动", logger.cyan(cmd.join(" "))], "Redis")
const redisProcess = spawn(cmd[0], cmd.slice(1))
.on("error", err => {
Bot.makeLog("error", ["启动错误", err], "Redis")
redisProcess.exit = true
})
.on("exit", () => redisProcess.exit = true)
redisProcess.stdout.on("data", data => {
Bot.makeLog("info", Bot.String(data).trim(), "Redis")
Expand Down

0 comments on commit f97809c

Please sign in to comment.