Add more debug logs in post-connection code

This commit is contained in:
Tulir Asokan
2020-11-06 02:29:14 +02:00
parent a49a5fa3d4
commit bf5be3fe62
2 changed files with 12 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ func (puppet *Puppet) SwitchCustomMXID(accessToken string, mxid id.UserID) error
}
func (puppet *Puppet) loginWithSharedSecret(mxid id.UserID) (string, error) {
puppet.log.Debugfln("Logging into %s with shared secret", mxid)
mac := hmac.New(sha512.New, []byte(puppet.bridge.Config.Bridge.LoginSharedSecret))
mac.Write([]byte(mxid))
resp, err := puppet.bridge.AS.BotClient().Login(&mautrix.ReqLogin{