Commit 25b08e79 authored by Gaetano Scandariato's avatar Gaetano Scandariato
Browse files

refactor of group 7 (logging and error handling): repository-wide unification...

refactor of group 7 (logging and error handling): repository-wide unification into a single canonical logger module (`PyAETNA.logger`).

- Removed all legacy logging utility files and delegation shims (`reporting/logger.py` and `sampling/engine/utils/logging_utils.py`)

- Updated all modules across `PyAETNA` to import `_log` and `set_log_file` directly from `PyAETNA.logger`.

- Redundant "INFO:" severity tags were eliminated across the entire codebase while maintaining "WARNING:" and "ERROR:" tags. `run.py` was also migrated: its local `_log` closure (which always prepended the `INFO:` tag) was removed and replaced with the canonical `PyAETNA.logger._log`; the log file is now configured once via `set_log_file(logFilePath)` so all downstream modules (sampler, reporter, physics) automatically share the same destination.

- `planet_phys.py` was fixed to no longer import the now-deleted `_get_logger` from `PyAETNA.reporting`, replacing that pattern with a direct import from `PyAETNA.logger`.

- The `_EIV_TRIGGERED` flag was moved to `PyAETNA.logger` as a module-level attribute, removing the last import of `PyAETNA.reporting.logger`.

- Updated and verified the test suite with `/dati/pyenvs/pyaetnaEnv/bin/python` (198 passed, 0 failures), confirming full regression-free functionality before permanently deleting the deprecated logging files.
parent 01559a39
Loading
Loading
Loading
Loading