diff --git a/internal/auditlogger/logger_test.go b/internal/auditlogger/logger_test.go index 82310b455..8028dca70 100644 --- a/internal/auditlogger/logger_test.go +++ b/internal/auditlogger/logger_test.go @@ -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() diff --git a/internal/graph/apierror/apierror.go b/internal/graph/apierror/apierror.go index f400d2ccd..116b6b4f7 100644 --- a/internal/graph/apierror/apierror.go +++ b/internal/graph/apierror/apierror.go @@ -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) diff --git a/internal/logger/component_names.go b/internal/logger/component_names.go index 2f6119dd0..d129c48bb 100644 --- a/internal/logger/component_names.go +++ b/internal/logger/component_names.go @@ -4,7 +4,6 @@ type ComponentName string const ( ComponentNameAuthn ComponentName = "authn" - ComponentNameConsole ComponentName = "console" ComponentNameGraphqlApi ComponentName = "graphql-api" ComponentNameUsersync ComponentName = "usersync" )