Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Mishra <[email protected]>
  • Loading branch information
mayank31398 committed Oct 24, 2024
1 parent a4f6b55 commit f2a84c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dolomite_engine/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def get_logger() -> logging.Logger:

@run_rank_n
def log_rank_0(level: int, msg: str) -> None:
logger = get_logger()
if logger is None:
set_logger()
log_rank_0(logging.WARN, "logger is not initialized yet, initializing now")

get_logger().log(level=level, msg=msg, stacklevel=3)


Expand Down

0 comments on commit f2a84c2

Please sign in to comment.