fix: remove console.log statements, use console.debug where needed
Per Obsidian plugin submission requirements, only console.warn, console.error, and console.debug are allowed. Changes: - Removed console.log from main.ts (API key generation and migration) - Removed console.log from mcp-server.ts (server start/stop messages) - Replaced console.log with console.debug in notifications.ts - Updated tests to expect console.debug instead of console.log All functionality is preserved - server status is still shown via Notice and status bar, and tool calls are still logged when enabled.
This commit is contained in:
@@ -102,7 +102,6 @@ export class MCPServer {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
this.server = this.app.listen(this.settings.port, '127.0.0.1', () => {
|
||||
console.log(`MCP Server listening on http://127.0.0.1:${this.settings.port}/mcp`);
|
||||
resolve();
|
||||
});
|
||||
|
||||
@@ -126,7 +125,6 @@ export class MCPServer {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
console.log('MCP Server stopped');
|
||||
this.server = null;
|
||||
resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user