Add back debug() for safe, but it is marked as deprecated

This commit is contained in:
Louis Lam
2022-04-12 16:37:05 +08:00
parent 279e2eb3f6
commit 9ec29c1bc4
2 changed files with 17 additions and 1 deletions

View File

@@ -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();