mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
chore(model): remove GUI/log warning on sequence anomaly (#9738)
I can see already in our Sentry data that there are a fair amount of these warnings, and mostly the shape of it. Asking users to report them will likely cause a lot of reporting effort to fairly little additional value. We can do that when/if we have something more targeted to ask for.
This commit is contained in:
parent
77942747db
commit
31874f3ebb
@ -448,13 +448,7 @@ func (s *indexHandler) receive(fs []protocol.FileInfo, update bool, op string, p
|
||||
return nil
|
||||
}
|
||||
|
||||
var warnSequenceAnomalyOnce sync.Once
|
||||
|
||||
func (s *indexHandler) logSequenceAnomaly(msg string, extra map[string]any) {
|
||||
warnSequenceAnomalyOnce.Do(func() {
|
||||
l.Warnf("Index sequence anomaly detected (please report at https://forum.syncthing.net/t/22660): %s (%v)", msg, extra)
|
||||
})
|
||||
|
||||
extraStrs := make(map[string]string, len(extra))
|
||||
for k, v := range extra {
|
||||
extraStrs[k] = fmt.Sprint(v)
|
||||
|
Loading…
Reference in New Issue
Block a user