Skip to content

Commit 67e98b0

Browse files
authored
Optimize function util logging. (#1664)
* Add pkill when timeout in worker stopping. (#1659) * add pkill when stopping worker timeout * debug ut * fix ut * set trace in debug logging
1 parent b61994d commit 67e98b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dlrover/python/util/function_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def wrapped(*args, **kwargs):
104104
type(e), e, e.__traceback__, limit=3
105105
)
106106
logger.warning(
107-
f"Retry {i} to {class_name}.{func_name} with failure {e}, ",
108-
f"with traceback {tb}",
107+
f"Retry {i} to {class_name}.{func_name} with failure {e}"
109108
)
109+
logger.debug(f"Caused traceback: {tb}")
110110
exception = e
111111
time.sleep(retry_interval)
112112
if exception:

0 commit comments

Comments
 (0)