From 2cb32e112fe95890d6198c6aca7bcee8370b2b7d Mon Sep 17 00:00:00 2001 From: seallard Date: Tue, 6 Aug 2024 10:25:30 +0200 Subject: [PATCH] logging --- genotype_api/api/endpoints/plates.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/genotype_api/api/endpoints/plates.py b/genotype_api/api/endpoints/plates.py index 2faa007..9ba3de6 100644 --- a/genotype_api/api/endpoints/plates.py +++ b/genotype_api/api/endpoints/plates.py @@ -1,6 +1,7 @@ """Routes for plates""" from http import HTTPStatus +import logging from typing import Literal from fastapi import APIRouter, Depends, File, Query, UploadFile, status, HTTPException from fastapi.responses import JSONResponse @@ -17,6 +18,7 @@ router = APIRouter() +logger = logging.getLogger(__name__) def get_plate_service(store: Store = Depends(get_store)) -> PlateService: return PlateService(store) @@ -116,6 +118,7 @@ async def read_plates( current_user: CurrentUser = Depends(get_active_user), ): """Display all plates""" + logging.info("RETRIEVING PLATES") order_params = PlateOrderParams( order_by=order_by, skip=skip, limit=limit, sort_order=sort_order )