Skip to content

Commit 3d8019f

Browse files
committed
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.
1 parent a71a531 commit 3d8019f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/openshift-install/log.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ func setupFileHook(baseDir string) func() {
6565
DisableLevelTruncation: false,
6666
}))
6767

68+
logrus.Debugf("OpenShift Installer %s", version)
69+
6870
return func() {
6971
logfile.Close()
7072
logrus.StandardLogger().ReplaceHooks(originalHooks)

0 commit comments

Comments
 (0)