diff --git a/internal/github/github.go b/internal/github/github.go index cf4861d..e99930e 100644 --- a/internal/github/github.go +++ b/internal/github/github.go @@ -159,7 +159,7 @@ func graphqlRequest(query, token string, logger *slog.Logger) ([]byte, error) { return nil, fmt.Errorf("could not construct github request: %w", err) } - logger.Info("querying github api") + logger.Debug("querying github api") response, err := httpClient.Do(request) if err != nil { return nil, fmt.Errorf("could not request github: %w", err) diff --git a/internal/storage/storage.go b/internal/storage/storage.go index 590442f..aec8dc7 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -112,7 +112,7 @@ func (s *DbStorage) Prs() StoredState { } func (s *DbStorage) StoreRepoPrs(orderedPrs []types.ViewPr) error { - s.logger.Info("storing prs", slog.Int("prs", len(orderedPrs))) + s.logger.Debug("storing prs", slog.Int("prs", len(orderedPrs))) buriedPrs, err := s.db.BuriedPrs(context.Background()) if err != nil { diff --git a/main.go b/main.go index c8c536d..f7e7252 100644 --- a/main.go +++ b/main.go @@ -81,7 +81,7 @@ func startRefreshLoop(token, username string, store storage.Storage, refresh cha for { select { case action := <-refresh: - logger.Info("refresh loop", "action", action) + logger.Debug("refresh loop", "action", action) switch action { case types.RefreshStop: refreshTimer.Stop()