Skip to content

Commit 59f74ac

Browse files
authored
Merge pull request #676 from meshery/perf-logging
add logging
2 parents 81bd491 + af7ea9f commit 59f74ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utils/utils.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525

2626
"github.com/layer5io/meshkit/logger"
2727
"github.com/layer5io/meshkit/models/meshmodel/entity"
28-
"github.com/open-policy-agent/opa/v1/logging"
2928
log "github.com/sirupsen/logrus"
3029
"gopkg.in/yaml.v3"
3130

@@ -870,7 +869,7 @@ func ParseKubeStatusErr(err *kubeerror.StatusError) (shortDescription, longDescr
870869
return
871870
}
872871

873-
func trackTime(logger logger.Handler, start time.Time, name string) {
872+
func TrackTime(logger logger.Handler, start time.Time, name string) {
874873

875874
elapsed := time.Since(start)
876875
logger.Debugf("%s took %s\n", name, elapsed)

0 commit comments

Comments
 (0)