Skip to content

Commit

Permalink
Log operator config on startup (#11)
Browse files Browse the repository at this point in the history
* Log operator config on startup

* Fix syntax

* Use %+v
  • Loading branch information
glaksh100 committed Jun 4, 2019
1 parent 75f04e5 commit d1d1176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/flinkk8soperator/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func executeRootCmd(controllerCfg *controller_config.Config) error {

labeled.SetMetricKeys(common.GetValidLabelNames()...)

logger.Infof(ctx, "Staleness Duration %v", controllerCfg.StatemachineStalenessDuration)
logger.Infof(ctx, "%+v\n", controllerCfg)

if controllerCfg.MetricsPrefix == "" {
logAndExit(errors.New("Invalid config: Metric prefix empty"))
Expand Down

0 comments on commit d1d1176

Please sign in to comment.