diff --git a/index.ts b/index.ts index 7bfbae3..21284b6 100644 --- a/index.ts +++ b/index.ts @@ -6,8 +6,6 @@ import { SessionManager } from "./session-manager.js" import { loadConfig } from "./config-loader.js" import { setLogDir, log } from "./logger.js" -log("Plugin module loaded") - // ============================================================================= // Plugin data directory — uses the same default as matrix-client // ============================================================================= @@ -74,6 +72,7 @@ async function runPlugin(ctx: any, options: any) { const SETUP_STARTED_LOG = `${dataDir}/setup-started.log` const SETUP_ERROR_LOG = `${dataDir}/setup-error.log` setLogDir(dataDir) + log("Plugin module loaded") // Acquire global lock — only one instance (server or client) starts the bot const locked = tryAcquireLock()