Skip to content

Commit 7011433

Browse files
committed
Remove cbi.log from cbi-tree
The currently intended workflow for cbi-tree is to run codebasin first, and ensure that it accurately analyzes the code base. As such, we do not need to display the full set of warnings from cbi-tree. Over time, we can improve this workflow by making the relationship explicit (e.g., by having codebasin produce a results directory that cbi-tree reads). Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 541bb18 commit 7011433

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

codebasin/tree.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,9 @@ def cli(argv: list[str]) -> int:
140140
args = parser.parse_args(argv)
141141

142142
# Configure logging such that:
143-
# - All messages are written to a log file
144143
# - Only errors are written to the terminal
145144
log.setLevel(logging.DEBUG)
146145

147-
file_handler = logging.FileHandler("cbi.log", mode="w")
148-
file_handler.setLevel(logging.INFO)
149-
file_handler.setFormatter(Formatter())
150-
log.addHandler(file_handler)
151-
152-
# Inform the user that a log file has been created.
153-
# 'print' instead of 'log' to ensure the message is visible in the output.
154-
log_path = os.path.abspath("cbi.log")
155-
print(f"Log file created at {log_path}")
156-
157146
stderr_handler = logging.StreamHandler(sys.stderr)
158147
stderr_handler.setLevel(logging.ERROR)
159148
stderr_handler.setFormatter(Formatter(colors=sys.stderr.isatty()))

0 commit comments

Comments
 (0)