File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
hooks_processor/lib/hooks_processor Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ defmodule HooksProcessor.Clients.RBACClient do
10
10
@ grpc_timeout 5_000
11
11
12
12
def member? ( org_id , user_id ) do
13
- Logger . info ( "Calling RBAC API to check membership: org_id: #{ org_id } user_id: #{ user_id } " )
13
+ Logger . debug ( "Calling RBAC API to check membership: org_id: #{ org_id } user_id: #{ user_id } " )
14
14
15
15
Metrics . benchmark ( "HooksProcessor.RBACClient" , [ "is_member?" ] , fn ->
16
16
% ListUserPermissionsRequest {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ defmodule HooksProcessor.Clients.UserClient do
22
22
23
23
def describe ( user_id ) do
24
24
"user_id: #{ user_id } "
25
- |> LT . info ( "Calling User API to find requester" )
25
+ |> LT . debug ( "Calling User API to find requester" )
26
26
27
27
Metrics . benchmark ( "HooksProcessor.UserClient" , [ "describe" ] , fn ->
28
28
% DescribeRequest {
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ defmodule HooksProcessor.Hooks.Processing.GitWorker do
55
55
56
56
defp get_requester_id ( webhook , email ) do
57
57
"email: #{ email } "
58
- |> LT . info ( "Hook #{ webhook . id } - calling User API to find requester" )
58
+ |> LT . debug ( "Hook #{ webhook . id } - calling User API to find requester" )
59
59
60
60
case UserClient . describe_by_email ( email ) do
61
61
{ :ok , user } ->
@@ -73,7 +73,7 @@ defmodule HooksProcessor.Hooks.Processing.GitWorker do
73
73
74
74
defp filter_membership ( webhook , organization_id , user_id ) do
75
75
"organization_id: #{ organization_id } , user_id: #{ user_id } "
76
- |> LT . info ( "Hook #{ webhook . id } - calling RBAC API to check membership" )
76
+ |> LT . debug ( "Hook #{ webhook . id } - calling RBAC API to check membership" )
77
77
78
78
case RBACClient . member? ( organization_id , user_id ) do
79
79
{ :ok , true } ->
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ defmodule HooksProcessor.Hooks.Processing.Utils do
39
39
40
40
def get_requester_id ( webhook , provider_uid , provider_type ) do
41
41
"provider_uid: #{ provider_uid } for provider: #{ provider_type } "
42
- |> LT . info ( "Hook #{ webhook . id } - calling User API to find requester" )
42
+ |> LT . debug ( "Hook #{ webhook . id } - calling User API to find requester" )
43
43
44
44
case UserClient . describe_by_repository_provider ( provider_uid , provider_type ) do
45
45
{ :ok , user } ->
You canβt perform that action at this time.
0 commit comments