Skip to content

Commit dda1c48

Browse files
committed
refactor: change error logging from error to warning in bounty and workspace modules
- Updated logging level from error to warning for failed bounty response and command response refreshes to better reflect the severity of the issues.
1 parent f15d31d commit dda1c48

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/algora/bounties/bounties.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ defmodule Algora.Bounties do
1212
alias Algora.Bounties.Jobs
1313
alias Algora.Bounties.LineItem
1414
alias Algora.Bounties.Tip
15-
alias Algora.FeeTier
1615
alias Algora.Organizations.Member
1716
alias Algora.Payments
1817
alias Algora.Payments.Transaction
@@ -327,7 +326,7 @@ defmodule Algora.Bounties do
327326
{:ok, response}
328327

329328
{:error, _} ->
330-
Logger.error(
329+
Logger.warning(
331330
"Failed to refresh bounty response for #{ticket_ref[:owner]}/#{ticket_ref[:repo]}##{ticket_ref[:number]}"
332331
)
333332

lib/algora/workspace/workspace.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ defmodule Algora.Workspace do
394394
end
395395

396396
{:error, reason} ->
397-
Logger.error("Failed to refresh command response #{ticket.id}: #{inspect(reason)}")
397+
Logger.warning("Failed to refresh command response #{ticket.id}: #{inspect(reason)}")
398398
{:error, :command_response_not_found}
399399
end
400400
end

0 commit comments

Comments
 (0)