mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-19 20:14:52 -04:00
slack and rocket.chat use the primary base url
env var to show time logger
This commit is contained in:
parent
b69550f5b9
commit
e5f6d7f047
9 changed files with 93 additions and 36 deletions
|
@ -166,7 +166,9 @@ class Monitor extends BeanModel {
|
|||
}
|
||||
}
|
||||
|
||||
debug("Cert Info Query Time: " + (dayjs().valueOf() - certInfoStartTime) + "ms");
|
||||
if (process.env.TIMELOGGER === "1") {
|
||||
debug("Cert Info Query Time: " + (dayjs().valueOf() - certInfoStartTime) + "ms");
|
||||
}
|
||||
|
||||
if (this.type === "http") {
|
||||
bean.status = UP;
|
||||
|
@ -530,6 +532,7 @@ class Monitor extends BeanModel {
|
|||
const uptime = await this.calcUptime(duration, monitorID);
|
||||
io.to(userID).emit("uptime", monitorID, duration, uptime);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Monitor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue