Open chuckwondo opened 2 weeks ago
The current message is printed from the first line of the function process_collection
within src/hls_lpdaac_reconciliation/response/index.py
.
The current message is printed from the first line of the function
process_collection
withinsrc/hls_lpdaac_reconciliation/response/index.py
.
It might make sense to change the log messages in a different function because in process_collection
we no longer have the full list of files, so we cannot determine Y (as described in the initial comment).
We need access to the full report
as available either within the handler
or process_report
functions.
A recent reconciliation report notification from LPDAAC contained this message body:
The corresponding log messages written by the response lambda were as follows:
The log messages do not make it clear that we have correctly handled the response, which can lead to unnecessary investigation to determine the state of affairs.
In order to avoid such unnecessary investigation time, we'd like to see the log messages enhanced by replacing each "X missing from ..." message with "X granule (Y file) differences in ...".
Currently, X is the number of granules, so the 2 "missing" from S30 are 2 "missing" (differing) granules, which equates to the 42 "Total diff" indicated in the notification message, but that is not at all clear in the current log messages.
The proposed change would not only allow us to readily see if Y matches up with the total diff per collection, but also eliminates confusion over the term "missing" in the log messages, which does not correspond to the missing count given in the notification message.