forked from Silverfish/proton-bridge
log both timeouts in update send
This commit is contained in:
@ -129,6 +129,7 @@ func (store *Store) imapSendUpdate(update imapBackend.Update) {
|
|||||||
select {
|
select {
|
||||||
case store.imapUpdates <- update:
|
case store.imapUpdates <- update:
|
||||||
case <-time.After(1 * time.Second):
|
case <-time.After(1 * time.Second):
|
||||||
|
store.log.Warn("IMAP update could not be sent (timeout).")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
@ -136,7 +137,7 @@ func (store *Store) imapSendUpdate(update imapBackend.Update) {
|
|||||||
select {
|
select {
|
||||||
case <-done:
|
case <-done:
|
||||||
case <-time.After(1 * time.Second):
|
case <-time.After(1 * time.Second):
|
||||||
store.log.Error("Could not send IMAP update (timeout)")
|
store.log.Warn("IMAP update could not be delivered (timeout).")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user