add logs to PayloadProcessor
- set log messages to determine if x-tenant storage connection is working
This commit is contained in:
parent
97309fe580
commit
d0c9fb5b7d
@ -98,8 +98,14 @@ class PayloadProcessor:
|
||||
|
||||
def _get_storage_info(self, x_tenant_id=None):
|
||||
if x_tenant_id:
|
||||
return self.get_storage_info_from_tenant_id(x_tenant_id)
|
||||
return self.default_storage_info
|
||||
storage_info = self.get_storage_info_from_tenant_id(x_tenant_id)
|
||||
logger.info(f"Received {storage_info.__class__.__name__} for {x_tenant_id} from endpoint.")
|
||||
logger.debug(f"{asdict(storage_info)}")
|
||||
else:
|
||||
storage_info = self.default_storage_info
|
||||
logger.info(f"Using local default {storage_info.__class__.__name__} for {x_tenant_id}.")
|
||||
logger.debug(f"{asdict(storage_info)}")
|
||||
return storage_info
|
||||
|
||||
|
||||
def make_payload_processor(data_processor: Callable, config: Config = None) -> PayloadProcessor:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user