Skip to content

Commit 89020cc

Browse files
authored
Fix debug logging (--enable-debug-logs) (#183)
1 parent 883dc4f commit 89020cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/xpk/core/core.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,8 +2111,11 @@ def get_main_container(args, system, docker_image, resource_type) -> str:
21112111
command = args.command
21122112
if args.enable_debug_logs:
21132113
command = (
2114-
'TPU_STDERR_LOG_LEVEL=0 TPU_MIN_LOG_LEVEL=0 TF_CPP_MIN_LOG_LEVEL=0'
2115-
f' TPU_VMODULE=real_program_continuator=1 {args.command}'
2114+
'export TPU_STDERR_LOG_LEVEL=0 &&'
2115+
' export TPU_MIN_LOG_LEVEL=0 &&'
2116+
' export TF_CPP_MIN_LOG_LEVEL=0 &&'
2117+
' export TPU_VMODULE=real_program_continuator=1 &&'
2118+
f' {args.command}'
21162119
)
21172120

21182121
gpu_workload_terminate_command = ''

0 commit comments

Comments
 (0)