Skip to content

Commit 5d419e3

Browse files
committed
log more errors
1 parent dffb624 commit 5d419e3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/algora/integrations/github/client.ex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ defmodule Algora.Github.Client do
44

55
alias Algora.Github.Crypto
66

7+
require Logger
8+
79
@type token :: String.t()
810

911
# TODO: move to a separate module and use only for data migration between databases
@@ -141,8 +143,9 @@ defmodule Algora.Github.Client do
141143
{:ok, %{"installations" => installations}} ->
142144
find_installation_in_list(token, installation_id, installations, page)
143145

144-
{:error, _reason} = error ->
145-
error
146+
{:error, reason} ->
147+
Logger.error("❌ Failed to find installation #{installation_id}: #{inspect(reason)}")
148+
{:error, reason}
146149
end
147150
end
148151

lib/algora_web/controllers/oauth_callback_controller.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defmodule AlgoraWeb.OAuthCallbackController do
5252
end
5353
else
5454
{:error, reason} ->
55-
Logger.debug("failed GitHub exchange #{inspect(reason)}")
55+
Logger.error("failed GitHub exchange #{inspect(reason)}")
5656
conn = put_flash(conn, :error, translate_error(reason))
5757

5858
case type do

0 commit comments

Comments
 (0)