Skip to content

Commit

Permalink
remove unused const
Browse files Browse the repository at this point in the history
  • Loading branch information
christeredvartsen committed Feb 19, 2024
1 parent 8bc4e9d commit c3da565
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion internal/auditlogger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func Test_Logf(t *testing.T) {
ctx := context.Background()
db := database.NewMockDatabase(t)
msg := "some message"
componentName := logger.ComponentNameConsole
componentName := logger.ComponentNameGraphqlApi

t.Run("missing audit action", func(t *testing.T) {
testLogger, hook := test.NewNullLogger()
Expand Down
2 changes: 0 additions & 2 deletions internal/graph/apierror/apierror.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ func Errorf(format string, args ...any) Error {
// GetErrorPresenter returns a GraphQL error presenter that filters out error messages not intended for end users.
// All filtered errors are logged.
func GetErrorPresenter(log logrus.FieldLogger) graphql.ErrorPresenterFunc {
// log = log.WithComponent(types.ComponentNameGraphqlApi)

return func(ctx context.Context, e error) *gqlerror.Error {
err := graphql.DefaultErrorPresenter(ctx, e)
unwrappedError := errors.Unwrap(e)
Expand Down
1 change: 0 additions & 1 deletion internal/logger/component_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ type ComponentName string

const (
ComponentNameAuthn ComponentName = "authn"
ComponentNameConsole ComponentName = "console"
ComponentNameGraphqlApi ComponentName = "graphql-api"
ComponentNameUsersync ComponentName = "usersync"
)

0 comments on commit c3da565

Please sign in to comment.