Commit ed5dad29 authored by BODERE's avatar BODERE
Browse files

fix: remove usage of loguru

parent 290fee10
......@@ -4,6 +4,6 @@ from opensearx_ws.opensearch import IfremerOpenSearchEngine
opensearch_engines = {
"Ifremer": IfremerOpenSearchEngine(root_path='https://opensearch.ifremer.fr/granules.atom', timeout=30.0),
"Nasa": IfremerOpenSearchEngine(root_path='https://opensearch.ifremer.fr/granules.atom', timeout=2.0)
"Nasa": IfremerOpenSearchEngine(root_path='https://toto.ifremer.fr/granules.atom', timeout=2.0)
}
......@@ -12,8 +12,6 @@ import httpx
from httpx import Response
from pydantic.main import BaseModel
from loguru import logger
class OpensearchResponseFormat(str, Enum):
atom = 'atom'
......@@ -74,7 +72,6 @@ class OpensearchEngine:
def __init__(self, root_path: str, timeout: float = 10.0):
self.root_path = root_path
self.timeout = timeout
self.log = logger.bind(context=self.__class__.__name__)
async def request(self, params: OpensearchQueryParameters) -> Optional[OpensearchResponse]:
async def request_hook(request):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment