This commit is contained in:
2026-09-12 13:59:12 +08:00
commit 941ce4baab
71 changed files with 13037 additions and 0 deletions

8
lib/log.js Normal file
View File

@@ -0,0 +1,8 @@
'use strict';
const on = process.env.CB_LOG === '1';
function devLog(...args) { if (on) console.log(...args); }
function devWarn(...args) { if (on) console.warn(...args); }
function devError(...args) { console.error(...args); } // errors always log
module.exports = { devLog, devWarn, devError, isDev: on };