mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Change debug to log.debug
This commit is contained in:
parent
64a0e1aa9b
commit
083e8355b7
1 changed files with 3 additions and 3 deletions
|
@ -99,12 +99,12 @@ exports.mqttAsync = function (hostname, topic, okMessage, options = {}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const timeoutID = setTimeout(() => {
|
const timeoutID = setTimeout(() => {
|
||||||
debug("MQTT timeout triggered");
|
log.debug("mqtt", "MQTT timeout triggered");
|
||||||
client.end();
|
client.end();
|
||||||
reject("Timeout");
|
reject("Timeout");
|
||||||
}, interval * 1000);
|
}, interval * 1000);
|
||||||
|
|
||||||
debug("MQTT connecting");
|
log.debug("mqtt", "MQTT connecting");
|
||||||
|
|
||||||
let client = mqtt.connect(hostname, {
|
let client = mqtt.connect(hostname, {
|
||||||
port,
|
port,
|
||||||
|
@ -113,7 +113,7 @@ exports.mqttAsync = function (hostname, topic, okMessage, options = {}) {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on("connect", () => {
|
client.on("connect", () => {
|
||||||
debug("MQTT subscribe topic");
|
log.debug("mqtt", "MQTT subscribe topic");
|
||||||
client.subscribe(topic);
|
client.subscribe(topic);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue