From 04a2d0ff3bdd1d476e92c6becbe046b79842ebe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Pa=C3=9F?= <22845248+mpass99@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:25:23 +0100 Subject: [PATCH] Inject Execution Debug Message for measuring the performance of the until loop of the stderr connection. --- internal/nomad/nomad.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/nomad/nomad.go b/internal/nomad/nomad.go index 79f92ad..fe95b6b 100644 --- a/internal/nomad/nomad.go +++ b/internal/nomad/nomad.go @@ -696,6 +696,7 @@ func prepareCommandTTY(command string, currentNanoTime int64, privilegedExecutio // Take the command to be executed and wrap it to redirect stderr. stderrFifoPath := stderrFifo(currentNanoTime) command = fmt.Sprintf(stderrWrapperCommandFormat, stderrFifoPath, command, stderrFifoPath) + command = injectStartDebugMessage(command, 0, 1) command = setUserCommand(command, privilegedExecution) command = unsetEnvironmentVariables(command)