fix: reduce log noise and debug exposure#416
Merged
liujuanjuan1984 merged 2 commits intomainfrom Apr 10, 2026
Merged
Conversation
Collaborator
Author
PR 变更审查审查范围:基于 代码变动审查未发现阻塞问题。
需求匹配审查PR 与 issue #415 的目标一致:保持默认 PR 标题与描述审查
剩余风险未发现当前实现的明显行为偏差。剩余风险主要是运维侧可能曾依赖客户端断开或 stream retry 的默认 验证
|
Closed
Collaborator
Author
第二轮日志审查更新基于当前分支继续审查剩余日志后,追加提交:
本轮结论未发现需要继续下调的默认可见 本轮调整
保留说明
验证
|
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.
关联 issue
Closes #415
变更说明
执行链路
ERROR堆栈调整为WARNING,并仅在DEBUG级别附带堆栈信息。ERROR堆栈调整为WARNING,并仅在DEBUG级别附带堆栈信息。DEBUG,避免限流期间按请求刷默认WARNING。text_len。exception记录,避免隐藏真正的运行时故障。流式输出
DEBUG,避免默认WARNING运行时输出重试堆栈噪音。DEBUG,保留调试可见性但不污染默认日志。content_len。服务请求处理
WARNING下调为DEBUG,按正常控制流处理。text_len。文档与测试
A2A_LOG_LEVEL=DEBUG。验证
uv run pytest --no-cov tests/execution/test_metrics.py::test_streaming_retry_metric_increments_once_per_retry tests/execution/test_agent_errors.py::test_streaming_execute_http_error_emits_status_update_with_metadata tests/server/test_app_behaviors.py::test_normalize_log_level_configure_logging_and_main tests/server/test_transport_contract.py::test_normalize_log_level_falls_back_to_warning_for_invalid_valueuv run pytest --no-cov tests/execution/test_streaming_output_contract_logging.py::test_execute_debug_log_records_text_length_without_raw_user_text tests/execution/test_agent_errors.py::test_streaming_execute_upstream_backpressure_emits_status_update_with_metadata tests/upstream/test_opencode_upstream_client_params.py::test_send_message_raises_concurrency_limit_error_when_request_budget_exhausteduv run ruff check src/opencode_a2a/execution/executor.py src/opencode_a2a/execution/coordinator.py src/opencode_a2a/execution/stream_runtime.py src/opencode_a2a/opencode_upstream_client.py tests/execution/test_streaming_output_contract_logging.py tests/execution/test_agent_errors.py tests/upstream/test_opencode_upstream_client_params.pyuv run ruff format --check src/opencode_a2a/execution/executor.py src/opencode_a2a/execution/coordinator.py src/opencode_a2a/execution/stream_runtime.py src/opencode_a2a/opencode_upstream_client.py tests/execution/test_streaming_output_contract_logging.py tests/execution/test_agent_errors.py tests/upstream/test_opencode_upstream_client_params.py./scripts/doctor.sh,571 项测试通过,覆盖率 91.65%。