mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-23 23:11:13 -04:00
Change log_info to log.info by making it into an object
This commit is contained in:
parent
94770cf865
commit
e9ce1433cd
16 changed files with 289 additions and 268 deletions
|
@ -3,13 +3,13 @@
|
|||
Modified with 0 dependencies
|
||||
*/
|
||||
let fs = require("fs");
|
||||
const { log_error } = require("../src/util");
|
||||
const { log } = require("../src/util");
|
||||
|
||||
let ImageDataURI = (() => {
|
||||
|
||||
function decode(dataURI) {
|
||||
if (!/data:image\//.test(dataURI)) {
|
||||
log_error("image-data-uri", "It seems that it is not an Image Data URI. Couldn't match \"data:image/\"");
|
||||
log.error("image-data-uri", "It seems that it is not an Image Data URI. Couldn't match \"data:image/\"");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ let ImageDataURI = (() => {
|
|||
|
||||
function encode(data, mediaType) {
|
||||
if (!data || !mediaType) {
|
||||
log_error("image-data-uri", "Missing some of the required params: data, mediaType");
|
||||
log.error("image-data-uri", "Missing some of the required params: data, mediaType");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue