Skip to content

Commit

Permalink
change logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-will committed Nov 8, 2024
1 parent b0b1ce3 commit 2740bd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/gw/source_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ def test_waveform_error_raising(self):
def test_unused_waveform_kwargs_message(self):
self.parameters.update(self.waveform_kwargs)
self.parameters["unused_waveform_parameter"] = 1.0
self._caplog.set_level(logging.WARNING, logger="bilby")
bilby.gw.source.logger.setLevel(logging.WARNING)
bilby.gw.source.logger.propagate = True
bilby.core.utils.log.logger.setLevel(logging.WARNING)
bilby.core.utils.log.logger.propagate = True

with self._caplog.at_level(logging.WARNING, logger="bilby"):
bilby.gw.source.lal_binary_black_hole(
Expand Down

0 comments on commit 2740bd9

Please sign in to comment.