From 710157ac9e64464f3b9150bfae18e39fce2fcc2a Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Sat, 7 Feb 2015 13:20:42 -0800 Subject: [PATCH] simplify hyperkube prints --- pkg/hyperkube/hyperkube.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/hyperkube/hyperkube.go b/pkg/hyperkube/hyperkube.go index 72e67683fef..f38aec289e2 100644 --- a/pkg/hyperkube/hyperkube.go +++ b/pkg/hyperkube/hyperkube.go @@ -101,14 +101,12 @@ func (hk *HyperKube) Print(i ...interface{}) { // Println is a convenience method to Println to the defined output func (hk *HyperKube) Println(i ...interface{}) { - str := fmt.Sprintln(i...) - hk.Print(str) + fmt.Fprintln(hk.Out(), i...) } // Printf is a convenience method to Printf to the defined output func (hk *HyperKube) Printf(format string, i ...interface{}) { - str := fmt.Sprintf(format, i...) - hk.Print(str) + fmt.Fprintf(hk.Out(), format, i...) } // Run the server. This will pick the appropriate server and run it.