forked from openshift/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd: split newlines in logrus stderr output to new entry
Currently the logrus hook runs formatter once for each entry, which causes newlines to be escaped see sirupsen/logrus#608 Because of this multiline messages end up looking like ```go logrus.Info(`some message same mesage multiline 1`) logrus.Info("next meesage") ``` ``` LEVEL some message same message multiline 1 LEVEL next messsage ``` With this change the hook will format each entry's message split on newlines so that, ```go logrus.Info(`some message same mesage multiline 1`) logrus.Info("next meesage") ``` ``` LEVEL some message LEVEL same message multiline 1 LEVEL next messsage ``` This will help 2 cases, - openshift@af9b49c like informational messages that are require multiple lines to be more user-friendly. - meesages from cluster operators on install-complete failure see openshift#4242
- Loading branch information
1 parent
cf57c06
commit de81d35
Showing
2 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters