Work on Stripe log

This commit is contained in:
Scott Idem
2022-07-26 09:30:37 -04:00
parent ea46b3337b
commit 0067f0c52b

View File

@@ -132,13 +132,15 @@ def common_route_params_min(
# exclude: Optional[list] = [], # Leaving this and include commented out # exclude: Optional[list] = [], # Leaving this and include commented out
# include: Optional[list] = [], # Leaving this and exclude commented out # include: Optional[list] = [], # Leaving this and exclude commented out
response: Response = Response, response: Response = Response,
log_lvl: int = logging.WARNING, # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log_lvl: int = logging.DEBUG, # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
) -> Common_Route_Params: ) -> Common_Route_Params:
log.setLevel(log_lvl) log.setLevel(log_lvl)
log.debug(locals()) log.debug(locals())
log.info(f'Setting commons values: x_account_id, x_account_id_random, limit, offset, enabled, by_alias, exclude_unset, response') log.info(f'Setting commons values: x_account_id, x_account_id_random, limit, offset, enabled, by_alias, exclude_unset, response')
log.debug(f'X Account ID: {x_account_id}')
if x_account_id: if x_account_id:
x_account_id_random = x_account_id x_account_id_random = x_account_id