UNPKG

307 BPlain TextView Raw
1export async function log(formatter: any, ...args: any[]): Promise<void> {
2 if (process.env.NODE_ENV !== 'production') {
3 try {
4 const { debug } = await import('debug');
5 const logger = debug('query-registry');
6 logger(formatter, args);
7 } catch {}
8 }
9}