From 3d8019f95927bf79d5e8befff084a95c21b84777 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Thu, 14 Feb 2019 12:38:12 -0800 Subject: [PATCH] openshift-install: add version string to logs Including the version in the logs should make debugging a little easier since we'll definitively know which version of the installer produced them. This log entry was added under `setupFileHook()` since it felt natural to include it as part of the logfile setup: ensure the logging directory exists, ensure the logfile exists, append the current version. --- cmd/openshift-install/log.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/openshift-install/log.go b/cmd/openshift-install/log.go index 44fe11c4894..cc12c132e6a 100644 --- a/cmd/openshift-install/log.go +++ b/cmd/openshift-install/log.go @@ -65,6 +65,8 @@ func setupFileHook(baseDir string) func() { DisableLevelTruncation: false, })) + logrus.Debugf("OpenShift Installer %s", version) + return func() { logfile.Close() logrus.StandardLogger().ReplaceHooks(originalHooks)