@@ -16,6 +16,7 @@ import (
16
16
log "github.com/Sirupsen/logrus"
17
17
"github.com/armon/go-metrics"
18
18
"github.com/relistan/go-director"
19
+ "gopkg.in/relistan/rubberneck.v1"
19
20
)
20
21
21
22
var (
@@ -244,18 +245,8 @@ func main() {
244
245
exitWithError (err , "Failed to find private IP address" )
245
246
mlConfig .AdvertiseAddr = publishedIP
246
247
247
- log .Println ("Sidecar starting -------------------" )
248
- log .Printf ("Cluster Name: %s" , * opts .ClusterName )
249
- log .Printf ("Config File: %s" , * opts .ConfigFile )
250
- log .Printf ("Cluster Seeds: %s" , strings .Join (* opts .ClusterIPs , ", " ))
251
- log .Printf ("Advertised address: %s" , publishedIP )
252
- log .Printf ("Service Name Match: %s" , config .Services .NameMatch )
253
- log .Printf ("Excluded IPs: %v" , config .Sidecar .ExcludeIPs )
254
- log .Printf ("Push/Pull Interval: %s" , config .Sidecar .PushPullInterval .Duration .String ())
255
- log .Printf ("Gossip Messages: %d" , config .Sidecar .GossipMessages )
256
- log .Printf ("Logging level: %s" , config .Sidecar .LoggingLevel )
257
- log .Printf ("Running HAproxy: %t" , ! config .HAproxy .Disable && ! * opts .HAproxyDisable )
258
- log .Println ("----------------------------------" )
248
+ printer := rubberneck .NewPrinter (log .Infof , rubberneck .NoAddLineFeed )
249
+ printer .PrintWithLabel ("Sidecar starting" , * opts , config )
259
250
260
251
list , err := memberlist .Create (mlConfig )
261
252
exitWithError (err , "Failed to create memberlist" )
0 commit comments