mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
feat(logger): add PICOCLAW_LOG_FILE env var for file-only logging
This commit is contained in:
@@ -28,6 +28,8 @@ func agentCmd(message, sessionKey, model string, debug bool) error {
|
||||
return fmt.Errorf("error loading config: %w", err)
|
||||
}
|
||||
|
||||
logger.ConfigureFromEnv()
|
||||
|
||||
if debug {
|
||||
logger.SetLevel(logger.DEBUG)
|
||||
fmt.Println("🔍 Debug mode enabled")
|
||||
|
||||
Reference in New Issue
Block a user