Skip to content

Commit

Permalink
Additional diagnostic logging
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Apr 30, 2024
1 parent 53847c4 commit ddc050d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
var susqlPrometheusDatabaseUrl string
var samplingRate string

flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.")
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8082", "The address the metric endpoint binds to.")
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.")
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. "+
Expand Down Expand Up @@ -128,6 +128,8 @@ func main() {
samplingRateInteger = 2
}

susqlLog.Info("Setting up labelGroupReconciler.")

if err = (&controller.LabelGroupReconciler{
Client: mgr.GetClient(),
Scheme: mgr.GetScheme(),
Expand All @@ -143,6 +145,8 @@ func main() {
}
//+kubebuilder:scaffold:builder

susqlLog.Info("Adding healthz check.")

if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil {
susqlLog.Error(err, "unable to set up health check")
os.Exit(1)
Expand All @@ -152,7 +156,7 @@ func main() {
os.Exit(1)
}

susqlLog.Info("starting manager")
susqlLog.Info("Starting manager.")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
susqlLog.Error(err, "problem running manager")
os.Exit(1)
Expand Down

0 comments on commit ddc050d

Please sign in to comment.