Skip to content

Commit 6595e13

Browse files
committed
fix(log) : Removes endless logs
1 parent 924bb35 commit 6595e13

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

climada/trajectories/riskperiod.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545

4646
LOGGER = logging.getLogger(__name__)
4747

48+
logging.getLogger("climada.util.coordinates").setLevel(logging.WARNING)
49+
logging.getLogger("climada.entity.exposures.base").setLevel(logging.WARNING)
50+
logging.getLogger("climada.engine.impact_calc").setLevel(logging.WARNING)
51+
4852

4953
def lazy_property(method):
5054
# This function is used as a decorator for properties
@@ -111,7 +115,7 @@ def __init__(
111115
risk_transf_cover: float | None = None,
112116
calc_residual: bool = False,
113117
):
114-
LOGGER.info("Instantiating new CalcRiskPeriod.")
118+
LOGGER.debug("Instantiating new CalcRiskPeriod.")
115119
self._snapshot0 = snapshot0
116120
self._snapshot1 = snapshot1
117121
self.date_idx = CalcRiskPeriod._set_date_idx(

0 commit comments

Comments
 (0)