mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 08:38:41 +08:00
fix log info
This commit is contained in:
parent
6f7118f686
commit
a8acb02e0a
@ -15,19 +15,19 @@ class Logger {
|
||||
}
|
||||
|
||||
public info(e:any):any {
|
||||
console.log(`Douban Plugin info:` + `${typeof e == 'string' ? e : JSON.stringify(e)}`);
|
||||
// console.log(`Douban Plugin info:` + `${typeof e == 'string' ? e : JSON.stringify(e)}`);
|
||||
return e;
|
||||
}
|
||||
|
||||
public trace(e:any):any {
|
||||
// return e;
|
||||
console.log(`Douban Plugin trace:` + `${typeof e == 'string' ? e : JSON.stringify(e)}`);
|
||||
// console.log(`Douban Plugin trace:` + `${typeof e == 'string' ? e : JSON.stringify(e)}`);
|
||||
return e;
|
||||
}
|
||||
|
||||
public traceN(notion:string, e:any):any {
|
||||
// return e;
|
||||
console.log(`${notion} ${typeof e == 'string' ? e : JSON.stringify(e)}`);
|
||||
// console.log(`${notion} ${typeof e == 'string' ? e : JSON.stringify(e)}`);
|
||||
return e;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user