-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature mute stream log for info level #1124
Feature mute stream log for info level #1124
Conversation
@azurewtl Thanks for your improvements. It works when I call |
I thought about using config. however, my proposal is that debug flag should be pass via command line tools.
Maybe YAML better off storage config that is NOT changed on ad-hoc basis. Otherwise if I want to show less or more info, I need to change config frequently. |
@shenchucheng I think this is a new requirement and can be discussed additionally. This PR can be merged first |
@@ -14,9 +14,13 @@ | |||
|
|||
from metagpt.const import METAGPT_ROOT | |||
|
|||
_print_level = "INFO" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DEBUG should be used for default _print_level?
Anyway, I’ll merge first |
Features
see issue : #1109
llm stream_response alway been print regardless of debug flag
I modified
logs.py
rather thanconfig2.py
.This is because log is been set via
define_log_level
rather thanconfig.yaml
To keep things simple, a global variable
_print_level
is introduced inlogs.py
Influence
define_log_level(print_level="INFO")
will mutelog_llm_stream