Skip to content

Commit 7a25560

Browse files
author
Robin VAN DE MERGHEL
committed
fix: Removed from management
1 parent c3b215d commit 7a25560

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

diracx-routers/src/diracx/routers/pilots/management.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import logging
43
from http import HTTPStatus
54
from typing import Annotated
65

@@ -37,8 +36,6 @@
3736

3837
router = DiracxRouter()
3938

40-
logger = logging.getLogger(__name__)
41-
4239

4340
@router.post("/")
4441
async 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

0 commit comments

Comments
 (0)