-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There are specific reasons for when we want to use the structured logs a.k.a InfoS versus when we want to use the formatted logs a.k.a Infof. Most of these logs are using the Infof format while using the InfoS function unfortunately. This causes logs like: I0629 20:41:28.798703 114685 master_controller.go:200] "Repairing Admin Policy Based External Route Services" I0629 20:41:28.798985 114685 repair.go:30] "Syncing exgw routes took %v" 265.415µs="(MISSING)" I0629 20:41:28.799084 114685 external_controller_pod.go:42] "Processing gateway pod %s/%s with matching policies %+v" openshift-dns="node-resolver-cmhvr" []="(MISSING)" I0629 20:41:28.799116 114685 external_controller_pod.go:42] "Processing gateway pod %s/%s with matching policies %+v" openshift-etcd="installer-7-ip-10-0-156-153.us-east-2.compute.internal" []="(MISSING)" I0629 20:41:28.799137 114685 external_controller_pod.go:42] "Processing gateway pod %s/%s with matching policies %+v" openshift-etcd="revision-pruner-7-ip-10-0-144-208.us-east-2.compute.internal" []="(MISSING)" I0629 20:41:28.799152 114685 external_controller_pod.go:42] "Processing gateway pod %s/%s with matching policies %+v" openshift-kube-apiserver="installer-8-ip-10-0-224-168.us-east-2.compute.internal" []="(MISSING)" I0629 20:41:28.799170 114685 external_controller_pod.go:42] "Processing gateway pod %s/%s with matching policies %+v" openshift-oauth-apiserver="apiserver-669859c5fb-7m7q6" []="(MISSING)" Let's change it back to Infof in places where the key=value format is not used. Signed-off-by: Surya Seetharaman <[email protected]>
- Loading branch information
Showing
10 changed files
with
64 additions
and
64 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
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
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
Oops, something went wrong.