Iam writing a database client and i want use a specific logger in the retry decorator:
import pandas as pd
from retry import retry
from set_up.SetUp import set_logging, set_up_environment, get_retry_parameters
class DBClient:
def __init__(self):
self.log = set_logging()
self.connection = set_up_environment()
self.tries,self.delay = get_retry_parameters()
@retry(tries=tries, delay=delay, logger=log)
def get_artist_table(self):
Is there a possibility to use the variables that i instantiate the class with in the retry decorator (it's an external library).