MCPcopy
hub / github.com/benborla/mcp-server-mysql / log

Function log

src/utils/index.ts:8–21  ·  view source on GitHub ↗
(type: LogType = "info", ...args: any[])

Source from the content-addressed store, hash-verified

6 process.env.ENABLE_LOGGING === "true" || process.env.ENABLE_LOGGING === "1";
7
8export function log(type: LogType = "info", ...args: any[]): void {
9 if (!ENABLE_LOGGING) return;
10
11 switch (type) {
12 case "info":
13 console.info(...args);
14 break;
15 case "error":
16 console.error(...args);
17 break;
18 default:
19 console.log(...args);
20 }
21}
22
23// Function to parse schema-specific permissions from environment variables
24export function parseSchemaPermissions(

Callers 13

index.tsFile · 0.50
createMcpServerFunction · 0.50
shutdownFunction · 0.50
redactPIIFunction · 0.50
filterIntrospectionRowsFunction · 0.50
walkFunction · 0.50
index.tsFile · 0.50
safeExitFunction · 0.50
getPoolFunction · 0.50
executeQueryFunction · 0.50
executeWriteQueryFunction · 0.50
executeReadOnlyQueryFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected