-
Notifications
You must be signed in to change notification settings - Fork 1
fix(CODEWIKI-006): 2 review findings across 2 files #41
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -216,12 +216,6 @@ def generate_command( | |
| logger = create_logger(verbose=verbose) | ||
| start_time = time.time() | ||
|
|
||
| # Suppress verbose third-party library logs | ||
| logging.getLogger("httpx").setLevel(logging.WARNING) | ||
| logging.getLogger("openai").setLevel(logging.WARNING) | ||
| logging.getLogger("openai._base_client").setLevel(logging.WARNING) | ||
| logging.getLogger("anthropic").setLevel(logging.WARNING) | ||
|
|
||
| try: | ||
| # Pre-generation checks | ||
| logger.step("Validating configuration...", 1, 4) | ||
|
Comment on lines
216
to
221
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π Third-party logger suppression duplicated again in generate.py command handler Removed the duplicated third-party logger suppression block ( π€ Prompt for AI agentsfix confidence: π‘ 80 medium β react π/π to teach the reviewer |
||
|
|
@@ -553,3 +547,4 @@ def generate_command( | |
| except Exception as e: | ||
| sys.exit(handle_error(e, verbose=verbose)) | ||
|
|
||
|
|
||
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.
𦩠π Third-party logger suppression duplicated in non-entry-point module doc_generator.py
Removed the module-level duplicate third-party logger suppression block (
logging.getLogger("httpx"/"openai"/"openai._base_client"/"anthropic").setLevel(logging.WARNING)) and its comment from the top ofcodewiki/cli/adapters/doc_generator.py, since this is not the entry-point module per CODEWIKI-006. Theimport loggingstatement was kept sinceloggingis still used extensively throughout the file (e.g.,_configure_backend_logging, variouslogger.info/logger.errorcalls). This centralizes the suppression to the actual entry point (main.py), removing the duplication called out in the finding. Residual risk: this file no longer independently guarantees suppressed httpx/openai/anthropic logs if invoked in a code path that bypasses the entry point's setup_logging(); confirming that all invocation paths go through the entry point is outside this file's visibility.π€ Prompt for AI agents
fix confidence: π‘ 85 medium β react π/π to teach the reviewer