Skip to content

Commit

Permalink
Adding a test for generate_logging_config
Browse files Browse the repository at this point in the history
Signed-off-by: pdmurray <peynmurray@gmail.com>
  • Loading branch information
peytondmurray committed Jul 24, 2023
1 parent 02a007f commit 2af6a1e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/ray/tests/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,15 @@ def test_log_level_settings(
assert len(caplog.records) == 0, "Log message found where none are expected."


def test_log_with_import():

logger = logging.getLogger(__name__)
assert not logger.disabled
ray.log.logger_initialized = False
ray.log.generate_logging_config()
assert not logger.disabled


if __name__ == "__main__":
import sys

Expand Down

0 comments on commit 2af6a1e

Please sign in to comment.