Skip to content

Commit

Permalink
Add more debug logging to help resolve #2093
Browse files Browse the repository at this point in the history
Also promote multiple messages log from debug to warning
  • Loading branch information
isbluis committed Aug 10, 2023
1 parent 03b9b45 commit 140cd4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/ARAX/ARAXQuery/ARAX_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,12 @@ def execute_processing_plan(self,input_operations_dict, mode='ARAX'):
operations = Operations.from_dict(input_operations_dict["operations"])

#### Connect to the message store just once, even if we won't use it
response.debug(f"Connecting to ResponseCache")
response_cache = ResponseCache()
response_cache.connect()

#### Create a messenger object for basic message processing
response.debug(f"Creating ARAXMessenger instance")
messenger = ARAXMessenger()

#### If there are URIs provided, try to load them
Expand Down Expand Up @@ -636,7 +638,7 @@ def execute_processing_plan(self,input_operations_dict, mode='ARAX'):

#### Multiple messages unsupported
else:
response.debug(f"Multiple Messages were uploaded or imported by reference. However, proper merging code has not been implmented yet! Will use just the first Message for now.")
response.warning(f"Multiple Messages were uploaded or imported by reference. However, proper merging code has not been implemented yet! Will use just the first Message for now.")
message = messages[0]

#### Examine the options that were provided and act accordingly
Expand Down

0 comments on commit 140cd4b

Please sign in to comment.