From 12d08d52ee681a892b1ec5604a28e27f454c163a Mon Sep 17 00:00:00 2001 From: RainbowMango Date: Mon, 23 Dec 2019 11:08:06 +0800 Subject: [PATCH] Improve output of update-openapi-spec.sh when printing logs from file. --- hack/update-openapi-spec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/update-openapi-spec.sh b/hack/update-openapi-spec.sh index 2262627c625..adfe9f27509 100755 --- a/hack/update-openapi-spec.sh +++ b/hack/update-openapi-spec.sh @@ -79,7 +79,7 @@ APISERVER_PID=$! if ! kube::util::wait_for_url "${API_HOST}:${API_PORT}/healthz" "apiserver: "; then kube::log::error "Here are the last 10 lines from kube-apiserver (${API_LOGFILE})" kube::log::error "=== BEGIN OF LOG ===" - tail -10 "${API_LOGFILE}" || : + tail -10 "${API_LOGFILE}" >&2 || : kube::log::error "=== END OF LOG ===" exit 1 fi