From 351ac516913c1c77c5a4b9b89e22dfff2ce63448 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 28 Jul 2021 16:07:39 +0100 Subject: [PATCH] Logging --- keyserver/internal/internal.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keyserver/internal/internal.go b/keyserver/internal/internal.go index 4466b635..90b0f949 100644 --- a/keyserver/internal/internal.go +++ b/keyserver/internal/internal.go @@ -429,6 +429,7 @@ func (a *KeyInternalAPI) crossSigningKeys( for userID := range req.UserToDevices { keys, err := a.DB.CrossSigningKeysForUser(ctx, userID) if err != nil { + logrus.WithError(err).Errorf("Failed to get cross-signing keys for user %q", userID) return fmt.Errorf("a.DB.CrossSigningKeysForUser (%q): %w", userID, err) } @@ -444,6 +445,8 @@ func (a *KeyInternalAPI) crossSigningKeys( }, } + logrus.WithField("key", key).Info("Cross-signing key") + // TODO: populate signatures switch keyType {