MCPcopy
hub / github.com/orion-lib/OrionTV / debug

Method debug

utils/Logger.ts:60–71  ·  view source on GitHub ↗
(optionsOrMessage: LoggerOptions | any, message?: any, ...args: any[])

Source from the content-addressed store, hash-verified

58 debug(message: any, ...args: any[]): void;
59 debug(options: LoggerOptions, message: any, ...args: any[]): void;
60 debug(optionsOrMessage: LoggerOptions | any, message?: any, ...args: any[]): void {
61 if (!__DEV__) return;
62
63 if (this.minLevel > LogLevel.DEBUG) return;
64
65 if (typeof optionsOrMessage === 'object' && optionsOrMessage.tag !== undefined) {
66 const options = optionsOrMessage as LoggerOptions;
67 this.formatMessage('DEBUG', options.tag, message, ...args);
68 } else {
69 this.formatMessage('DEBUG', undefined, optionsOrMessage, message, ...args);
70 }
71 }
72
73 /**
74 * 信息级别日志

Callers 12

onSelectSourceFunction · 0.80
playerStore.tsFile · 0.80
selectCurrentEpisodeFunction · 0.80
startMethod · 0.80
stopMethod · 0.80
cleanOldApkFilesMethod · 0.80
downloadApkMethod · 0.80
setupRequestHandlerMethod · 0.80
startServerMethod · 0.80
stopServerMethod · 0.80
SearchScreenFunction · 0.80

Calls 1

formatMessageMethod · 0.95

Tested by

no test coverage detected