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 1
1
from __future__ import annotations
2
2
3
- import logging
4
3
from http import HTTPStatus
5
4
from typing import Annotated
6
5
37
36
38
37
router = DiracxRouter ()
39
38
40
- logger = logging .getLogger (__name__ )
41
-
42
39
43
40
@router .post ("/" )
44
41
async def add_pilot_stamps (
@@ -51,7 +48,6 @@ async def add_pilot_stamps(
51
48
str ,
52
49
Body (description = "Virtual Organisation associated with the inserted pilots." ),
53
50
],
54
- user_info : Annotated [AuthorizedUserInfo , Depends (verify_dirac_access_token )],
55
51
check_permissions : CheckPilotManagementPolicyCallable ,
56
52
grid_type : Annotated [str , Body (description = "Grid type of the pilots." )] = "Dirac" ,
57
53
grid_site : Annotated [str , Body (description = "Pilots grid site." )] = "Unknown" ,
@@ -84,11 +80,6 @@ async def add_pilot_stamps(
84
80
pilot_job_references = pilot_references ,
85
81
status_reason = status_reason ,
86
82
)
87
-
88
- # Logs credentials creation
89
- logger .debug (
90
- f"{ user_info .preferred_username } added { len (pilot_stamps )} pilots."
91
- )
92
83
except PilotAlreadyExistsError as e :
93
84
raise HTTPException (status_code = status .HTTP_409_CONFLICT , detail = str (e )) from e
94
85
You can’t perform that action at this time.
0 commit comments