File tree 1 file changed +1
-4
lines changed 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,6 @@ def before_request_execute():
97
97
user = current_user
98
98
api_key = resolve_auth_token ()
99
99
100
- # TODO: remove after testing -- what does `user` look like in logs? dont forget, we DONT wanna print `user` info to logs in prod!!!
101
- get_structured_logger ("server_api" ).info ("USER INFO" , user = (user and user .as_dict ))
102
-
103
- # Log statement
104
100
# TODO: replace this next call with: log_info_with_request("Received API request")
105
101
get_structured_logger ("server_api" ).info (
106
102
"Received API request" ,
@@ -113,6 +109,7 @@ def before_request_execute():
113
109
user_agent = request .user_agent .string ,
114
110
api_key = api_key ,
115
111
)
112
+
116
113
if not show_no_api_key_warning ():
117
114
if not _is_public_route () and api_key and not user :
118
115
# if this is a privleged endpoint, and an api key was given but it does not look up to a user, raise exception:
You can’t perform that action at this time.
0 commit comments