Skip to content

Commit a6895af

Browse files
committed
refactor(github_graphql): Downgrade fetch failure logs from Warn to Info
1 parent 642a13a commit a6895af

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

backend/helpers/pluginhelper/api/graphql_async_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func CreateAsyncGraphqlClient(
9090
if getRateRemaining != nil {
9191
rateRemaining, resetAt, err := getRateRemaining(taskCtx.GetContext(), graphqlClient, logger)
9292
if err != nil {
93-
graphqlAsyncClient.logger.Warn(err, "failed to fetch initial graphql rate limit, fallback to default")
93+
graphqlAsyncClient.logger.Info("failed to fetch initial graphql rate limit, fallback to default: %v", err)
9494
graphqlAsyncClient.updateRateRemaining(graphqlAsyncClient.rateRemaining, nil)
9595
} else {
9696
graphqlAsyncClient.updateRateRemaining(rateRemaining, resetAt)

backend/plugins/github_graphql/impl/impl.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ func (p GithubGraphql) PrepareTaskData(taskCtx plugin.TaskContext, options map[s
190190
return 0, nil, errors.Default.Wrap(dataErrors[0], `query rate limit fail`)
191191
}
192192
if query.RateLimit == nil {
193-
logger.Info(`github graphql rate limit unavailable, using fallback rate limit`)
194193
return 0, nil, errors.Default.New("rate limit unavailable")
195194
}
196195
logger.Info(`github graphql init success with remaining %d/%d and will reset at %s`,

0 commit comments

Comments
 (0)