// // Logging. Debug output is gated behind the gitea.logging.debug preference so // that a normal session stays quiet in the extension console. // const PREFIX = "[gitea]"; function debugEnabled() { return nova.config.get("gitea.logging.debug", "boolean") === true; } exports.debug = function (...args) { if (debugEnabled()) { console.log(PREFIX, ...args); } }; exports.info = function (...args) { console.log(PREFIX, ...args); }; exports.warn = function (...args) { console.warn(PREFIX, ...args); }; exports.error = function (...args) { console.error(PREFIX, ...args); };