Skip to content

Commit

Permalink
Configure logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Jul 31, 2024
1 parent 8c6cda1 commit 11ddecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/metldata/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

import typer
from ghga_service_commons.api import run_server
from hexkit.log import configure_logging

from metldata.combined import get_app
from metldata.config import Config
Expand All @@ -43,5 +44,6 @@ def wrapper(*args, **kwargs):
async def run_api() -> None:
"""Run the combined loader and query API."""
config = Config() # type: ignore
configure_logging(config=config)
app = await get_app(config=config)
await run_server(app=app, config=config)
2 changes: 2 additions & 0 deletions src/metldata/load/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"""Config parameters and their defaults."""

from ghga_service_commons.api import ApiConfigBase
from hexkit.log import LoggingConfig
from hexkit.providers.akafka import KafkaConfig
from hexkit.providers.mongodb import MongoDbConfig
from pydantic import Field
Expand All @@ -33,6 +34,7 @@ class ArtifactLoaderAPIConfig(
EventPubTranslatorConfig,
KafkaConfig,
MongoDbConfig,
LoggingConfig,
):
"""Config settings for the loader API."""

Expand Down

0 comments on commit 11ddecc

Please sign in to comment.