feat: set logger level by env PICOCLAW_LOG_LEVEL#1139
Closed
lanmaoxinqing wants to merge 2 commits intosipeed:mainfrom
Closed
feat: set logger level by env PICOCLAW_LOG_LEVEL#1139lanmaoxinqing wants to merge 2 commits intosipeed:mainfrom
lanmaoxinqing wants to merge 2 commits intosipeed:mainfrom
Conversation
Add comprehensive test coverage for the parseLevel function that supports parsing log level from PICOCLAW_LOG_LEVEL environment variable. Co-Authored-By: Claude (MiniMax-M2.5) <noreply@anthropic.com>
Collaborator
|
Collaborator
|
Closing this PR as #1853 (config-based log level setting) has already been merged. The config file approach provides a more comprehensive solution for log level configuration. If you still need environment variable support for CI/CD scenarios, please feel free to reopen or open a new PR discussing the use case. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
Add support for PICOCLAW_LOG_LEVEL environment variable to allow users to control log level via environment variable, hiding intermediate log outputs such as tool calls during execution.
🗣️ Type of Change
🤖 AI Code Generation
📚 Technical Context (Skip for Docs)
when executing picoclaw agent -m "task", the log output is too verbose, especially for tool call logs. By adding environment variable support, users can set log level to WARN or ERROR to hide INFO-level tool call logs.
🧪 Test Environment
📸 Evidence (Optional)
☑️ Checklist