1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-06-27 00:51:30 +02:00

Change log_info to log.info by making it into an object

This commit is contained in:
Louis Lam
2022-04-13 23:33:37 +08:00
parent 94770cf865
commit e9ce1433cd
16 changed files with 289 additions and 268 deletions

View File

@ -1,7 +1,7 @@
const { R } = require("redbean-node");
const { checkLogin, setSettings, setSetting } = require("../util-server");
const dayjs = require("dayjs");
const { log, log_info, log_debug, log_error } = require("../../src/util");
const { log } = require("../../src/util");
const ImageDataURI = require("../image-data-uri");
const Database = require("../database");
const apicache = require("../modules/apicache");
@ -203,7 +203,7 @@ module.exports.statusPageSocketHandler = (socket) => {
}
// Delete groups that are not in the list
log_debug("socket", "Delete groups that are not in the list");
log.debug("socket", "Delete groups that are not in the list");
const slots = groupIDList.map(() => "?").join(",");
const data = [
@ -226,7 +226,7 @@ module.exports.statusPageSocketHandler = (socket) => {
});
} catch (error) {
log_error("socket", error);
log.error("socket", error);
callback({
ok: false,