1
0
forked from Kieran/snort
snort/packages/worker-relay/src/debug.ts

10 lines
212 B
TypeScript

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;
}