File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
diracx-routers/src/diracx/routers/pilots Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import logging
43from http import HTTPStatus
54from typing import Annotated
65
3736
3837router = DiracxRouter ()
3938
40- logger = logging .getLogger (__name__ )
41-
4239
4340@router .post ("/" )
4441async def add_pilot_stamps (
@@ -51,7 +48,6 @@ async def add_pilot_stamps(
5148 str ,
5249 Body (description = "Virtual Organisation associated with the inserted pilots." ),
5350 ],
54- user_info : Annotated [AuthorizedUserInfo , Depends (verify_dirac_access_token )],
5551 check_permissions : CheckPilotManagementPolicyCallable ,
5652 grid_type : Annotated [str , Body (description = "Grid type of the pilots." )] = "Dirac" ,
5753 grid_site : Annotated [str , Body (description = "Pilots grid site." )] = "Unknown" ,
@@ -84,11 +80,6 @@ async def add_pilot_stamps(
8480 pilot_job_references = pilot_references ,
8581 status_reason = status_reason ,
8682 )
87-
88- # Logs credentials creation
89- logger .debug (
90- f"{ user_info .preferred_username } added { len (pilot_stamps )} pilots."
91- )
9283 except PilotAlreadyExistsError as e :
9384 raise HTTPException (status_code = status .HTTP_409_CONFLICT , detail = str (e )) from e
9485
You can’t perform that action at this time.
0 commit comments