Skip to content

Commit

Permalink
fix: var types
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkirchberger committed Aug 26, 2023
1 parent 817ac0e commit a450622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fastapi_health_monitor/healthmonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def add_component(
component_name: str,
measurement_name: str,
check_function: Callable[[ComponentHealth], ComponentHealth],
component_type: str = None,
component_type: Optional[str] = None,
observed_unit: Optional[str] = None,
component_id: Optional[str] = None,
):
Expand Down
4 changes: 2 additions & 2 deletions fastapi_health_monitor/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(
service_id: str,
version: str,
release_id: str,
description: str = None,
description: Optional[str] = None,
extra_notes: Optional[List[str]] = None,
):
"""
Expand Down Expand Up @@ -73,7 +73,7 @@ async def _run(self) -> None:
# break when app is exited
break
except Exception as e: # pylint: disable=W0718
logger.exception("manager loop error: " + str(e))
logger.exception(f"manager loop error: {e}")
# Wait for health check delay
await asyncio.sleep(settings.health_check_delay_seconds)
logger.info("stopped health check refresh")
Expand Down

0 comments on commit a450622

Please sign in to comment.