mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-20 10:43:40 +00:00
Logging
This commit is contained in:
parent
c997461db1
commit
28b038390e
1 changed files with 6 additions and 0 deletions
|
@ -284,21 +284,27 @@ func (a *KeyInternalAPI) QueryKeys(ctx context.Context, req *api.QueryKeysReques
|
||||||
// work out if our cross-signing request for this user was
|
// work out if our cross-signing request for this user was
|
||||||
// satisfied, if not add them to the list of things to fetch
|
// satisfied, if not add them to the list of things to fetch
|
||||||
if _, ok := res.MasterKeys[userID]; !ok {
|
if _, ok := res.MasterKeys[userID]; !ok {
|
||||||
|
util.GetLogger(ctx).Infof("No cross-signing master keys for %s found", userID)
|
||||||
if _, ok := domainToDeviceKeys[domain]; !ok {
|
if _, ok := domainToDeviceKeys[domain]; !ok {
|
||||||
domainToDeviceKeys[domain] = make(map[string][]string)
|
domainToDeviceKeys[domain] = make(map[string][]string)
|
||||||
}
|
}
|
||||||
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
||||||
util.GetLogger(ctx).Infof("Request cross-signing keys from %s for %s", domain, userID)
|
util.GetLogger(ctx).Infof("Request cross-signing keys from %s for %s", domain, userID)
|
||||||
domainToDeviceKeys[domain][userID] = []string{}
|
domainToDeviceKeys[domain][userID] = []string{}
|
||||||
|
} else {
|
||||||
|
util.GetLogger(ctx).Infof("Already requesting keys from %s for %s", domain, userID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if _, ok := res.SelfSigningKeys[userID]; !ok {
|
if _, ok := res.SelfSigningKeys[userID]; !ok {
|
||||||
|
util.GetLogger(ctx).Infof("No cross-signing self-signing keys for %s found", userID)
|
||||||
if _, ok := domainToDeviceKeys[domain]; !ok {
|
if _, ok := domainToDeviceKeys[domain]; !ok {
|
||||||
domainToDeviceKeys[domain] = make(map[string][]string)
|
domainToDeviceKeys[domain] = make(map[string][]string)
|
||||||
}
|
}
|
||||||
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
if _, ok := domainToDeviceKeys[domain][userID]; !ok {
|
||||||
util.GetLogger(ctx).Infof("Request cross-signing keys from %s for %s", domain, userID)
|
util.GetLogger(ctx).Infof("Request cross-signing keys from %s for %s", domain, userID)
|
||||||
domainToDeviceKeys[domain][userID] = []string{}
|
domainToDeviceKeys[domain][userID] = []string{}
|
||||||
|
} else {
|
||||||
|
util.GetLogger(ctx).Infof("Already requesting keys from %s for %s", domain, userID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue