Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
feat: add verbose flag to CLI and configure logger to respect debug output levels
Salman Qureshi9adcce61d003
diff --git a/src/index.ts b/src/index.tsindex f95b4ca4..e7699480 100644--- a/src/index.ts+++ b/src/index.ts@@ -207,6 +207,7 @@ program.name('mercury').description('Mercury — an AI agent for personal tasks').version('0.1.0')+ .option('-v, --verbose', 'Show debug logs').action(async () => {if (!isSetupComplete()) {await onboarding();@@ -218,6 +219,7 @@ programprogram.command('start').description('Start Mercury agent')+ .option('-v, --verbose', 'Show debug logs').action(async () => {if (!isSetupComplete()) {await onboarding();diff --git a/src/utils/logger.ts b/src/utils/logger.tsindex 6adcd6d7..43b0d90e 100644--- a/src/utils/logger.ts+++ b/src/utils/logger.ts@@ -1,6 +1,10 @@import pino from 'pino';+const verbose = process.argv.includes('--verbose') || process.argv.includes('-v');+const level = process.env.LOG_LEVEL || (verbose ? 'info' : 'silent');+export const logger = pino({- level: process.env.LOG_LEVEL || 'info',+ level,name: 'mercury',-});\ No newline at end of file+}, pino.destination(2),+);\ No newline at end of file