Skip to content

Commit

Permalink
debugging, no messages produced in test data
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Jul 7, 2023
1 parent 46e6038 commit 6d99acf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions synop2bufr/pygeoapi_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,15 @@ def execute(self, data):
# transform returns a generator, we need to iterate over
# and add to single output object
bufr = []
count = 0
for result in bufr_generator:
bufr.append(result)

count += 1
if count != 1:
LOGGER.error(fm12)
LOGGER.error(metadata)
output = {"messages": bufr}

LOGGER.error(f"Number of messages processed = {count}")
LOGGER.error(output)
except Exception as e:
LOGGER.exception(e)
Expand Down

0 comments on commit 6d99acf

Please sign in to comment.