The logs for errors and warnings around direct shard operations are both unbounded in the number of log messages that can be triggered per hour. When requesting a log ingestion rule for Atlas, it was brought up that this cannot be unbounded in order to get a log ingestion rule approved.
To abide by these rules, we change the behavior to the following:
Warnings - once per hour, log the existing message. Otherwise, rely on the user assertion log at debug(1).
Errors - once per hour, log the existing message. Otherwise, log at debug(2) the same error but with a new log ID.
This will allow the log ingestion rules to have a log ID that only occurs once per hour, but users can increase verbosity to see more frequent logs.