Fix logging level usage in Redis retry decorator
* Replace string with logging.WARNING constant
This commit is contained in:
parent
485c4b7de7
commit
a4c4b1182a
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import logging
|
||||
from typing import Any, final, Union
|
||||
from dataclasses import dataclass
|
||||
import pipmaster as pm
|
||||
|
|
@ -50,7 +51,7 @@ redis_retry = retry(
|
|||
| retry_if_exception_type(TimeoutError)
|
||||
| retry_if_exception_type(RedisError)
|
||||
),
|
||||
before_sleep=before_sleep_log(logger, "WARNING"),
|
||||
before_sleep=before_sleep_log(logger, logging.WARNING),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue