fix: fix non-json logs with log_as_json enabled (#3779)

Signed-off-by: CH3CHO <ch3cho@qq.com>
This commit is contained in:
Kent Dong
2026-04-30 18:03:33 +08:00
committed by GitHub
parent 74c68180c8
commit 4e0d691432
14 changed files with 15 additions and 22 deletions

View File

@@ -30,7 +30,7 @@ import (
"github.com/hashicorp/go-multierror"
"go.uber.org/atomic"
"istio.io/api/networking/v1alpha3"
"istio.io/pkg/log"
"istio.io/istio/pkg/log"
apiv1 "github.com/alibaba/higress/v2/api/networking/v1"
"github.com/alibaba/higress/v2/pkg/common"
@@ -665,7 +665,7 @@ func (w *watcher) Run() {
defer func() {
log.Info("[zookeeper] Run is down")
if r := recover(); r != nil {
log.Info("Recovered in f", "r is", r)
log.Infof("Recovered in Run: %v", r)
}
}()
ticker := time.NewTicker(30 * time.Second)