mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 02:59:39 +08:00
Add back debug() for safe, but it is marked as deprecated
This commit is contained in:
@@ -49,6 +49,14 @@ export function ucfirst(str: string) {
|
||||
return firstLetter.toUpperCase() + str.substr(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use log_debug
|
||||
* @param msg
|
||||
*/
|
||||
export function debug(msg: any) {
|
||||
log("", msg, "debug");
|
||||
}
|
||||
|
||||
function log(module: string, msg: any, level:string) {
|
||||
module = module.toUpperCase();
|
||||
level = level.toUpperCase();
|
||||
|
Reference in New Issue
Block a user