custom_logger/print_trace: no longer check for run_no_stdout
this function was removed.
This commit is contained in:
@@ -135,10 +135,6 @@ def get_callers(start: int = 2, end: int = 2) -> list[str]:
|
||||
def print_trace(msg: str, logger: logging.Logger, prefix: str | None) -> None:
|
||||
trace_depth = int(os.environ.get("TRACE_DEPTH", "0"))
|
||||
callers = get_callers(3, 4 + trace_depth)
|
||||
|
||||
if "run_no_stdout" in callers[0]:
|
||||
callers = callers[1:]
|
||||
else:
|
||||
callers.pop()
|
||||
|
||||
if len(callers) == 1:
|
||||
|
||||
Reference in New Issue
Block a user