Skip to content

Commit b02aff3

Browse files
committed
移除打印
1 parent de134bd commit b02aff3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

monitor/routes/timer.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ module.exports = async (customerWarningCallback, serverType = "master") => {
4949
/** * 定时任务 开始 */
5050
setTimeout(() => {
5151
Common.consoleInfo()
52-
// Common.createTable(0)
52+
Common.createTable(0)
5353

54-
// if (process.env.LOGNAME === "jeffery") {
55-
// console.log("=====本地服务,不再启动定时器====")
56-
// return
57-
// }
54+
if (process.env.LOGNAME === "jeffery") {
55+
console.log("=====本地服务,不再启动定时器====")
56+
return
57+
}
5858

5959
// 数据库里存放的monitor-master-uuid
6060
let monitorMasterUuidInDb = ""
@@ -146,11 +146,9 @@ module.exports = async (customerWarningCallback, serverType = "master") => {
146146
TimerCalculateController.calculateCountByDay(minuteTimeStr, 0)
147147
}
148148
}
149-
console.log(minuteTimeStr, monitorMasterUuidInDb, global.monitorInfo.monitorMasterUuid)
150149
// 每小时的前6分钟,会计算小时数据
151150
if (minuteTimeStr > "00:00" && minuteTimeStr < "06:00") {
152151
if (monitorMasterUuidInDb === global.monitorInfo.monitorMasterUuid) {
153-
console.log("开始小时分析")
154152
TimerCalculateController.calculateCountByHour(minuteTimeStr, 1, customerWarningCallback)
155153
}
156154
}

0 commit comments

Comments
 (0)