mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Tweak log levels
This commit is contained in:
parent
c9b630d631
commit
bcdf8473b8
|
|
@ -457,14 +457,14 @@ func (u *DeviceListUpdater) processServerUser(ctx context.Context, serverName go
|
||||||
// Use the default waitTime, if it's a timeout.
|
// Use the default waitTime, if it's a timeout.
|
||||||
// It probably doesn't make sense to try further users.
|
// It probably doesn't make sense to try further users.
|
||||||
if !e.Timeout() {
|
if !e.Timeout() {
|
||||||
logger.WithError(e).Error("GetUserDevices returned net.Error")
|
logger.WithError(e).Debug("GetUserDevices returned net.Error")
|
||||||
return time.Minute * 10, err
|
return time.Minute * 10, err
|
||||||
}
|
}
|
||||||
case gomatrix.HTTPError:
|
case gomatrix.HTTPError:
|
||||||
// The remote server returned an error, give it some time to recover.
|
// The remote server returned an error, give it some time to recover.
|
||||||
// This is to avoid spamming remote servers, which may not be Matrix servers anymore.
|
// This is to avoid spamming remote servers, which may not be Matrix servers anymore.
|
||||||
if e.Code >= 300 {
|
if e.Code >= 300 {
|
||||||
logger.WithError(e).Error("GetUserDevices returned gomatrix.HTTPError")
|
logger.WithError(e).Debug("GetUserDevices returned gomatrix.HTTPError")
|
||||||
return time.Hour, err
|
return time.Hour, err
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
@ -474,7 +474,7 @@ func (u *DeviceListUpdater) processServerUser(ctx context.Context, serverName go
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if res.UserID != userID {
|
if res.UserID != userID {
|
||||||
logger.WithError(err).Warnf("User ID %q in device list update response doesn't match expected %q", res.UserID, userID)
|
logger.WithError(err).Debugf("User ID %q in device list update response doesn't match expected %q", res.UserID, userID)
|
||||||
return defaultWaitTime, nil
|
return defaultWaitTime, nil
|
||||||
}
|
}
|
||||||
if res.MasterKey != nil || res.SelfSigningKey != nil {
|
if res.MasterKey != nil || res.SelfSigningKey != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue