File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -590,15 +590,15 @@ def _KillProcess():
590590 if should_time :
591591 timing_output = tf_timing .read ().rstrip ('\n ' )
592592
593- logged_stdout = '[REDACTED]' if suppress_logging else stdout
594- logged_stderr = '[REDACTED]' if suppress_logging else stderr
595- debug_text = 'Ran: {%s}\n ReturnCode:%s%s\n STDOUT: %s\n STDERR: %s' % (
593+ debug_text = 'Ran: {%s}\n ReturnCode:%s%s' % (
596594 full_cmd ,
597595 process .returncode ,
598596 timing_output ,
599- logged_stdout ,
600- logged_stderr ,
601597 )
598+ if not suppress_logging :
599+ debug_text += f'\n STDOUT: { stdout } \n STDERR: { stderr } '
600+ else :
601+ debug_text += ' STDOUT & STDERR: [REDACTED]'
602602 if _VM_COMMAND_LOG_MODE .value == VmCommandLogMode .ALWAYS_LOG or (
603603 _VM_COMMAND_LOG_MODE .value == VmCommandLogMode .LOG_ON_ERROR
604604 and process .returncode
You can’t perform that action at this time.
0 commit comments