Removing debugging. Changing it to INFO in many locations.
This commit is contained in:
@@ -167,7 +167,7 @@ async def v2_post_event_person_new(
|
||||
exclude_unset: bool = True,
|
||||
response: Response = Response,
|
||||
):
|
||||
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(event_person_new_init)
|
||||
@@ -229,7 +229,7 @@ async def v2_post_event_person_new(
|
||||
inc_address = True,
|
||||
inc_organization = True,
|
||||
)
|
||||
# log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
# log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(person_obj)
|
||||
else:
|
||||
log.debug('A new person was not created')
|
||||
@@ -245,11 +245,11 @@ async def v2_post_event_person_new(
|
||||
# user_new['contact_id_random'] = person_obj.contact.id_random # REMOVE: No longer used
|
||||
# user_new['person_id_random'] = person_obj.id_random # REMOVE: No longer used
|
||||
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(user_new)
|
||||
|
||||
user_obj_new = User_New_Base(**user_new)
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(user_obj_new)
|
||||
|
||||
user_id = None
|
||||
@@ -261,7 +261,7 @@ async def v2_post_event_person_new(
|
||||
elif isinstance(create_user_obj_result, int):
|
||||
user_id = create_user_obj_result
|
||||
user_obj = load_user_obj(user_id=user_id) # Not including roles, contact, or organization
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(user_obj)
|
||||
else:
|
||||
log.debug('A new user was not created')
|
||||
@@ -404,7 +404,7 @@ async def get_event_person_obj(
|
||||
exclude_unset: Optional[bool] = True,
|
||||
response: Response = Response,
|
||||
):
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
if event_person_id := redis_lookup_id_random(record_id_random=event_person_id, table_name='event_person'): pass
|
||||
|
||||
Reference in New Issue
Block a user