@kohlarnhin/mcp-server-postgres
Version:
MCP server for interacting with PostgreSQL databases based on Node
17 lines • 488 B
JavaScript
// @INFO: Enable logging if ENABLE_LOGGING is true
const ENABLE_LOGGING = ["true", "1"].includes(process.env.ENABLE_LOGGING || 'false');
export function log(type = 'info', ...args) {
if (!ENABLE_LOGGING)
return;
switch (type) {
case 'info':
console.info(...args);
break;
case 'error':
console.error(...args);
break;
default:
console.log(...args);
}
}
//# sourceMappingURL=index.js.map