Skip to content

Commit 0d98cf3

Browse files
committed
feat(DEVC-2097): fix logger
1 parent f1e0452 commit 0d98cf3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/corva/configuration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import datetime
2+
import logging
23

34
import pydantic_settings
45
from pydantic import AnyHttpUrl, BeforeValidator, TypeAdapter
56
from typing_extensions import Annotated
67

8+
logger = logging.getLogger("corva")
9+
710

811
def validate_http_url_to_str(v: str) -> str:
912
TypeAdapter(AnyHttpUrl).validate_python(v)
1013
return v
1114

1215

1316
def _parse_max_retry_count(value) -> int:
14-
from .logger import CORVA_LOGGER
1517

1618
if value is None or value == "":
1719
return DEFAULT_MAX_RETRY_COUNT
@@ -25,7 +27,7 @@ def _parse_max_retry_count(value) -> int:
2527
except (TypeError, ValueError):
2628
pass
2729

28-
CORVA_LOGGER.warning(
30+
logger.warning(
2931
"Invalid MAX_RETRY_COUNT value %r; using default %d.",
3032
value,
3133
DEFAULT_MAX_RETRY_COUNT,

0 commit comments

Comments
 (0)