refactor: fix worker-relay for external users
This commit is contained in:
10
packages/worker-relay/src/debug.ts
Normal file
10
packages/worker-relay/src/debug.ts
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
let debug = false;
|
||||
export function debugLog(scope: string, msg: string, ...args: Array<any>) {
|
||||
if (!debug) return;
|
||||
console.log(scope, msg, ...args);
|
||||
}
|
||||
|
||||
export function setLogging(v: boolean) {
|
||||
debug = v;
|
||||
}
|
Reference in New Issue
Block a user