Minor changes

This commit is contained in:
Scott Idem
2024-03-28 12:56:24 -04:00
parent 0af9c4a76e
commit 76d5d4c94d

View File

@@ -144,7 +144,7 @@ def common_route_params(
# 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.INFO, # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log_lvl: int = logging.WARNING, # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
) -> Common_Route_Params|Common_Route_Params_No_Account_ID: ) -> Common_Route_Params|Common_Route_Params_No_Account_ID:
log.setLevel(log_lvl) log.setLevel(log_lvl)
log.debug(locals()) log.debug(locals())
@@ -166,7 +166,7 @@ def common_route_params(
x_account_id_random = '--- NOT SET ---' x_account_id_random = '--- NOT SET ---'
elif x_no_account_id_token and len(x_no_account_id_token) > 10: # NOTE: Not a header value! elif x_no_account_id_token and len(x_no_account_id_token) > 10: # NOTE: Not a header value!
# NOTE WARNING: This token should be varified and able to be disabled quickly. # NOTE WARNING: This token should be verified and able to be disabled quickly.
log.warning(f'Found the x_no_account_id_token URL param with the value: {x_no_account_id_token}') log.warning(f'Found the x_no_account_id_token URL param with the value: {x_no_account_id_token}')
if x_account_id := redis_lookup_id_random(table_name='account', record_id_random=x_no_account_id_token): if x_account_id := redis_lookup_id_random(table_name='account', record_id_random=x_no_account_id_token):