mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 04:36:43 +00:00
feat(BRIDGE-373): extend label conflict resolver logging & report sync errors to sentry
This commit is contained in:
@ -89,8 +89,11 @@ func (r *reportRecorder) close() {
|
||||
}
|
||||
|
||||
func (r *reportRecorder) assertEmpty() {
|
||||
if !r.skipAssert {
|
||||
r.assert.Empty(r.reports)
|
||||
if !r.skipAssert && len(r.reports) > 0 {
|
||||
for _, report := range r.reports {
|
||||
// Sentry reports with failed syncs are expected, mostly due to sync context cancellations.
|
||||
r.assert.Equal(report.message, "Failed to sync, will retry later")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user