fix: respect the exit code and pass flags correctly when tailing nginx logs on k3s

This commit is contained in:
Jose Diaz-Gonzalez committed 2024-10-21 21:51:37 -04:00
1 parent 82b3c9dda6
commit 51b951643b
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -866,7 +866,8 @@ func TriggerSchedulerProxyLogs(scheduler string, appName string, proxyType strin
command = append(command, "-F")
}
if numLines > 0 {
command = append(command, fmt.Sprintf("-n %d", numLines))
command = append(command, "-n")
command = append(command, strconv.FormatInt(numLines, 10))
}
command = append(command, filename)