-
Notifications
You must be signed in to change notification settings - Fork 1
fix(CODEWIKI-008-2): CU-86akhf8u6 2 review findings across 2 files #81
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 |
|---|---|---|
| @@ -1,8 +1,10 @@ | ||
| #!/usr/bin/env python3 | ||
| import os, sys, logging | ||
|
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. 𦩠π logging.basicConfig() called directly in standalone test scripts instead of centralized setup_logging() Replaced π€ Prompt for AI agentsfix confidence: π‘ 75 medium β react π/π to teach the reviewer |
||
| logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(message)s', force=True) | ||
| import os, sys | ||
| sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | ||
|
|
||
| from codewiki.src.be.dependency_analyzer.utils.logging_config import setup_logging | ||
| setup_logging() | ||
|
|
||
| from dotenv import load_dotenv | ||
| load_dotenv('.env.local') | ||
|
|
||
|
|
||
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.
𦩠π test_clustering_integration.py calls logging.basicConfig() outside the designated entry point
Replaced the direct
logging.basicConfig(level=logging.WARNING, format='%(message)s')call at module scope with an import ofsetup_loggingfromcodewiki.src.be.dependency_analyzer.utils.logging_configand a callsetup_logging(level=logging.WARNING, format='%(message)s')in its place, matching the pattern used intest_with_logging.py. This removes the prohibited directbasicConfig()usage from the script. Confidence is moderate rather than high because I have not seensetup_logging's actual signature in this file set β it's assumed to acceptlevelandformatkeyword arguments analogous tologging.basicConfig; if its real signature differs, this call site would need adjustment.π€ Prompt for AI agents
fix confidence: π΄ 55 low β review closely β react π/π to teach the reviewer