From c4c720027c5d58dba0386f128c95b15b01cfdd14 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Tue, 24 Jan 2023 23:40:24 +0800 Subject: [PATCH] Fix: Use correct log call format --- server/model/monitor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 2fcb08758..2e3bf66e5 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -505,7 +505,7 @@ class Monitor extends BeanModel { throw new Error(e.message); } } else if (this.type === "docker") { - log.debug(`[${this.name}] Prepare Options for Axios`); + log.debug("monitor", `[${this.name}] Prepare Options for Axios`); const dockerHost = await R.load("docker_host", this.docker_host); @@ -531,7 +531,7 @@ class Monitor extends BeanModel { options.baseURL = DockerHost.patchDockerURL(dockerHost._dockerDaemon); } - log.debug(`[${this.name}] Axios Request`); + log.debug("monitor", `[${this.name}] Axios Request`); let res = await axios.request(options); if (res.data.State.Running) { bean.status = UP;