added logs for an addPeer

This commit is contained in:
crn4
2025-07-07 18:16:02 +02:00
parent ad22e9eea1
commit 0886b67ce9

View File

@@ -473,6 +473,7 @@ func (am *DefaultAccountManager) AddPeer(ctx context.Context, setupKey, userID s
accountID, err = am.Store.GetAccountIDBySetupKey(ctx, encodedHashedKey)
}
if err != nil {
log.WithContext(ctx).Errorf("failed login: sk - %s, userId - %s, dnsLabel - %s, meta - %v", setupKey, userID, peer.DNSLabel, peer.Meta)
return nil, nil, nil, status.Errorf(status.NotFound, "failed adding new peer: account not found")
}