Skip to content

Commit

Permalink
chore: cleanup logs
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Jan 23, 2025
1 parent 506aac6 commit 0328a4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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.Debug("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.Debug("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.Debug("invalid content type", "contentType", visit.ContentType)
// logger.Debug("invalid content type", "contentType", visit.ContentType)
continue
}

Expand Down
1 change: 0 additions & 1 deletion pgs/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ func StartApiServer() {
MaxBodyBytes: uint64(cfg.MaxAssetSize),
DefaultCacheControl: cfg.CacheControl,
},
LogLevel: "info",
}
c.SetLogger(&CompatLogger{logger})
storages.InitFromConfiguration(c)
Expand Down

0 comments on commit 0328a4b

Please sign in to comment.