diff --git a/app/routers/e_impexium.py b/app/routers/e_impexium.py index c207bc3..6aa2eab 100644 --- a/app/routers/e_impexium.py +++ b/app/routers/e_impexium.py @@ -38,10 +38,10 @@ async def event_import_reg( commons: Common_Route_Params = Depends(common_route_params), ): - log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL + log.setLevel(logging.WARNING) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.debug(locals()) - log.info('Starting Impexium event registration import...') + log.warning('Starting Impexium event registration import...') account_id = commons.x_account_id account_id_random = commons.x_account_id_random @@ -57,7 +57,7 @@ async def event_import_reg( ) if event_registrant_li: - log.info(f'Total record count: {len(event_registrant_li)}') + log.warning(f'Total record count: {len(event_registrant_li)}') else: return mk_resp(data=None, status_code=404, status_message=f'Checked for registrations in Impexium. No Impexium registrations found.', response=commons.response) @@ -71,7 +71,7 @@ async def event_import_reg( event_person_summary_li = [] for event_registrant in event_registrant_li: if loop_count > loop_limit: break - log.info(f'BEGIN: **** *** ** * Impexium registrant import loop #{loop_count} * ** *** ****') + log.warning(f'BEGIN: **** *** ** * Impexium registrant import loop #{loop_count} * ** *** ****') # ISHLT 2022 used event_registrant.get('registrantTypeCode') for the registration type # ISHLT 2023 used a custom field for their main registration. @@ -552,7 +552,7 @@ async def event_import_reg( if location: event_badge_data['location'] = location # Process for badge markings and ticket options - log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL + # log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.debug(registrant_sessions) for registrant_session in registrant_sessions: # if registrant_session.get('code') == 'Other Session???': @@ -560,7 +560,7 @@ async def event_import_reg( if registrant_session.get('code') == 'First Timer Orientation': event_badge_data['ticket_3_code'] = 'first_timers_breakfast' - log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL + # log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL event_person_data['event_badge'] = {} event_person_data['event_badge'] = event_badge_data