RSDK-7986 - stop logging noisy errors #121
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We were generating noisy errors in
rust-utils
occasionally when trying to connect. This seemed to be the result of parallel dialing, but it happened non-deterministically. While the errors were basically harmless (one branch always succeeds and so a connection is always still formed), they were noisy and scary-looking (it could be easy to miss that a connection was in fact formed successfully and that any calls were made successfully).Some digging revealed that the cause of this problem was a failure to receive updates from the signaling service, meaning we never set a
UUID
and so sent an empty string as our UUID. Thus, we can avoid the noisy errors by checking if the UUID is empty before sending an update request and just not sending if so. The exact cause of the problem is unknown to me at this time; I'd love to dig into it more but given that this issue doesn't seem to be actually affecting performance or functionality in any way, it's probably not worth the effort at this time. Very happy to revisit when that changes (or if anyone disagrees)!cc @benjirewis, who helpfully noticed and flagged this issue to begin with.