mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
12 lines
210 B
TypeScript
12 lines
210 B
TypeScript
export function logDebugWithCat(
|
|
cat: `[${string}]`,
|
|
message: string,
|
|
enable: boolean,
|
|
...args: Array<unknown>
|
|
) {
|
|
if (!enable) {
|
|
return;
|
|
}
|
|
window?.log?.debug(`${cat} ${message}`, ...args);
|
|
}
|