Skip to content

Commit

Permalink
chore(auth): move logs to debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Jan 22, 2025
1 parent 5e0f72a commit ea3dc03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auth/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -696,19 +696,19 @@ func metricDrainSub(ctx context.Context, dbpool db.DB, logger *slog.Logger, secr

visit, err := accessLogToVisit(dbpool, clean)
if err != nil {
logger.Error("could not convert access log to a visit", "err", err)
logger.Debug("could not convert access log to a visit", "err", err)
continue
}

logger.Info("received visit", "visit", visit)
err = shared.AnalyticsVisitFromVisit(visit, dbpool, secret)
if err != nil {
logger.Info("could not record analytics visit", "err", err)
logger.Debug("could not record analytics visit", "err", err)
continue
}

if !strings.HasPrefix(visit.ContentType, "text/html") {
logger.Info("invalid content type", "contentType", visit.ContentType)
logger.Debug("invalid content type", "contentType", visit.ContentType)
continue
}

Expand Down

0 comments on commit ea3dc03

Please sign in to comment.