22 lines
404 B
TypeScript
22 lines
404 B
TypeScript
// @ts-nocheck
|
|
const ENABLE_APP_DEBUG_LOGS = false;
|
|
const TRACE_CONV = false;
|
|
|
|
export function debugLog(...args) {
|
|
if (!ENABLE_APP_DEBUG_LOGS) return;
|
|
try {
|
|
console.log('[app]', ...args);
|
|
} catch (e) {
|
|
/* ignore logging errors */
|
|
}
|
|
}
|
|
|
|
export const traceLog = (...args) => {
|
|
if (!TRACE_CONV) return;
|
|
try {
|
|
console.log('[conv-trace]', ...args);
|
|
} catch (e) {
|
|
// ignore
|
|
}
|
|
};
|