Skip to content

Commit

Permalink
addition of logs to debug
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <[email protected]>
  • Loading branch information
frouioui committed Jan 26, 2023
1 parent 1dddfa7 commit 225ffe5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/operator/vttablet/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/utils/pointer"
"sigs.k8s.io/controller-runtime/pkg/client"
logf "sigs.k8s.io/controller-runtime/pkg/log"
topodatapb "vitess.io/vitess/go/vt/proto/topodata"
"vitess.io/vitess/go/vt/topo/topoproto"

Expand Down Expand Up @@ -373,8 +374,8 @@ func UpdatePod(obj *corev1.Pod, spec *Spec) {
}

func detectMySQLVersionUpgradeDowngrade(obj *corev1.Pod, spec *Spec) *corev1.Lifecycle {
// log := logf.Log.WithName("manager")

log := logf.Log.WithName("manager")
log.Info("========== LIFECYCLE")
mysqldLifecycle := &corev1.Lifecycle{
PreStop: &corev1.LifecycleHandler{
Exec: &corev1.ExecAction{
Expand Down

0 comments on commit 225ffe5

Please sign in to comment.