-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Currently, the exception-logging function only logs the message:
Lines 76 to 85 in 8ccf663
def log_exception(output: str) -> None: | |
""" | |
Log an exception to the log file. | |
Parameters | |
---------- | |
output : str | |
The exception to be logged. | |
""" | |
logger.error(output) |
but adding in the rank of the process could be useful for debugging purposes in some situations, as the log_rank()
function does:
Lines 62 to 73 in 8ccf663
def log_rank(output: Any, comm: MPI.Comm) -> None: | |
""" | |
Log output to log file with the process rank. | |
Parameters | |
---------- | |
output : Any | |
The item to be printed. | |
comm : Comm | |
The comm used to determine the process rank. | |
""" | |
logger.debug(f"RANK: [{comm.rank}], {output}") |