Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
chore(logging): remove some redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbes committed Aug 8, 2024
1 parent 3d1c034 commit d969551
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion pkg/requestlogger/requestlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func Middleware(log zerolog.Logger, pathFilters ...string) func(next http.Handle
"status": ww.Status(),
"browser": ua.Name,
"os": ua.OS,
"device": ua.Device,
"bytes_in": bytesIn,
"bytes_out": ww.BytesWritten(),
"latency_ms": float64(t2.Sub(t1).Nanoseconds()) / 1000000.0, //nolint: gomnd
Expand Down
2 changes: 0 additions & 2 deletions pkg/requestlogger/requestlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ type LogFormat struct {
Message string `json:"message"`
Browser string `json:"browser"`
OS string `json:"os"`
Device string `json:"device"`
}

func TestLoggerMiddleware(t *testing.T) {
Expand Down Expand Up @@ -61,7 +60,6 @@ func TestLoggerMiddleware(t *testing.T) {
Message: "incoming_request",
Browser: "Chrome",
OS: "Windows",
Device: "",
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/service/core/service_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (s *userService) GetUserData(ctx context.Context, user *service.User) (*ser

proj, err := s.naisConsoleStorage.GetTeamProject(ctx, auth.TrimNaisTeamPrefix(grp.Email))
if err != nil {
s.log.Error().Err(err).Msg("getting team project")
s.log.Debug().Err(err).Msg("getting team project")
continue
}

Expand Down

0 comments on commit d969551

Please sign in to comment.