General clean up. Less debug.
This commit is contained in:
@@ -254,7 +254,7 @@ def create_update_event_abstract_obj(
|
|||||||
fail_any: bool = False, # Fail if any thing goes wrong for sub objects
|
fail_any: bool = False, # Fail if any thing goes wrong for sub objects
|
||||||
return_outline: bool = False,
|
return_outline: bool = False,
|
||||||
) -> int|bool:
|
) -> int|bool:
|
||||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
log.info('Checking requirements...')
|
log.info('Checking requirements...')
|
||||||
@@ -463,7 +463,7 @@ def remove_event_abstract_obj(
|
|||||||
|
|
||||||
method: None|str = None,
|
method: None|str = None,
|
||||||
|
|
||||||
log_lvl: int = logging.DEBUG, # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log_lvl: int = logging.INFO, # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
) -> bool|None:
|
) -> bool|None:
|
||||||
log.setLevel(log_lvl)
|
log.setLevel(log_lvl)
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ def load_event_badge_obj(
|
|||||||
inc_event_badge_template: bool = False,
|
inc_event_badge_template: bool = False,
|
||||||
return_basic_model: bool = False,
|
return_basic_model: bool = False,
|
||||||
) -> Event_Badge_Base|dict|bool:
|
) -> Event_Badge_Base|dict|bool:
|
||||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
if event_badge_id := redis_lookup_id_random(record_id_random=event_badge_id, table_name='event_badge'): pass
|
if event_badge_id := redis_lookup_id_random(record_id_random=event_badge_id, table_name='event_badge'): pass
|
||||||
@@ -357,7 +357,7 @@ def email_event_badge_review_url(
|
|||||||
event_badge_id: int|str,
|
event_badge_id: int|str,
|
||||||
root_url: str,
|
root_url: str,
|
||||||
):
|
):
|
||||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
# if account_id := redis_lookup_id_random(record_id_random=account_id, table_name='account'): pass
|
# if account_id := redis_lookup_id_random(record_id_random=account_id, table_name='account'): pass
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ def create_update_grant_obj(
|
|||||||
fail_any: bool = False, # Fail if any thing goes wrong for sub objects
|
fail_any: bool = False, # Fail if any thing goes wrong for sub objects
|
||||||
return_outline: bool = False,
|
return_outline: bool = False,
|
||||||
) -> int|bool:
|
) -> int|bool:
|
||||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
log.info('Checking requirements...')
|
log.info('Checking requirements...')
|
||||||
|
|||||||
@@ -1791,7 +1791,7 @@ def handle_email_person_auth_key_url(
|
|||||||
person_id: int|str,
|
person_id: int|str,
|
||||||
root_url: str,
|
root_url: str,
|
||||||
):
|
):
|
||||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
if account_id := redis_lookup_id_random(record_id_random=account_id, table_name='account'): pass
|
if account_id := redis_lookup_id_random(record_id_random=account_id, table_name='account'): pass
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ async def patch_grant_obj(
|
|||||||
|
|
||||||
commons: Common_Route_Params = Depends(common_route_params),
|
commons: Common_Route_Params = Depends(common_route_params),
|
||||||
):
|
):
|
||||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||||
log.debug(locals())
|
log.debug(locals())
|
||||||
|
|
||||||
if grant_id := redis_lookup_id_random(record_id_random=grant_id, table_name='grant'): pass
|
if grant_id := redis_lookup_id_random(record_id_random=grant_id, table_name='grant'): pass
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ from app.routers.api_crud import delete_obj_template, get_obj_template, get_obj_
|
|||||||
|
|
||||||
from app.methods.data_store_methods import create_update_data_store_obj, get_data_store_rec_list, load_data_store_obj, load_data_store_obj_w_code
|
from app.methods.data_store_methods import create_update_data_store_obj, get_data_store_rec_list, load_data_store_obj, load_data_store_obj_w_code
|
||||||
|
|
||||||
# from app.models.common_field_schema import default_num_bytes
|
|
||||||
from app.models.util_email_models import Email_Send_Base
|
from app.models.util_email_models import Email_Send_Base
|
||||||
from app.models.response_models import Resp_Body_Base, mk_resp
|
from app.models.response_models import Resp_Body_Base, mk_resp
|
||||||
|
|
||||||
@@ -74,4 +73,4 @@ async def util_email_send_obj(
|
|||||||
resp_data = False
|
resp_data = False
|
||||||
|
|
||||||
return mk_resp(data=resp_data, status_code=status_code, response=commons.response, status_message=status_message)
|
return mk_resp(data=resp_data, status_code=status_code, response=commons.response, status_message=status_message)
|
||||||
# ### END ### API Utility: Email ### util_email_send_obj() ###
|
# ### END ### API Utility: Email ### util_email_send_obj() ###
|
||||||
|
|||||||
Reference in New Issue
Block a user