Skip to content

Commit 2c983fb

Browse files
committed
fix: replace leftover logging.warning with print
Resolves a potential NameError crash caused by a leftover `logging` reference after the module was removed in the previous commit.
1 parent 9b6399f commit 2c983fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/import_profiler/profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def run_worker(target_module):
8787
with open(file_path, 'r', encoding='utf-8', errors='ignore') as f:
8888
loaded_lines += sum(1 for _ in f)
8989
except OSError as e:
90-
logging.warning(f"Failed to read lines from {file_path}: {e}")
90+
print(f"WARNING: Failed to read lines from {file_path}: {e}", file=sys.stderr)
9191
except KeyError:
9292
# Module disappeared from sys.modules during execution
9393
pass

0 commit comments

Comments
 (0)