Skip to content

Commit

Permalink
removed more dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
samiura committed Sep 22, 2023
1 parent 894d7ef commit 28cd085
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
9 changes: 0 additions & 9 deletions internal/signalfx-agent/pkg/utils/events.go

This file was deleted.

40 changes: 0 additions & 40 deletions internal/signalfx-agent/pkg/utils/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,48 +8,8 @@ import (
lru "github.com/hashicorp/golang-lru"
"github.com/signalfx/golib/v3/log"
"github.com/sirupsen/logrus"

apmlog "github.com/signalfx/signalfx-agent/pkg/apm/log"
)

func NewAPMShim(log logrus.FieldLogger) apmlog.Logger {
return apmShim{log: log}
}

type apmShim struct {
log logrus.FieldLogger
}

func (a apmShim) Debug(msg string) {
a.log.Debug(msg)
}

func (a apmShim) Warn(msg string) {
a.log.Warn(msg)
}

func (a apmShim) Error(msg string) {
a.log.Error(msg)
}

func (a apmShim) Info(msg string) {
a.log.Info(msg)
}

func (a apmShim) Panic(msg string) {
a.log.Panic(msg)
}

func (a apmShim) WithFields(fields apmlog.Fields) apmlog.Logger {
return apmShim{log: a.log.WithFields(logrus.Fields(fields))}
}

func (a apmShim) WithError(err error) apmlog.Logger {
return apmShim{log: a.log.WithError(err)}
}

var _ apmlog.Logger = &apmShim{}

// LogrusGolibShim makes a Logrus logger conform to the golib Log interface
type LogrusGolibShim struct {
logrus.FieldLogger
Expand Down

0 comments on commit 28cd085

Please sign in to comment.