Log ping status when calling provisioning API

This commit is contained in:
Tulir Asokan 2021-02-07 17:35:06 +02:00
parent 1a6fdf565e
commit 449943bef8

View file

@ -259,6 +259,8 @@ func (prov *ProvisioningAPI) Ping(w http.ResponseWriter, r *http.Request) {
"ok": err == nil,
"err": errStr,
}
user.log.Debugln("Admin test response due to /ping: %v (conn: %t, login: %t, in progress: %t)",
err, user.Conn.IsConnected(), user.Conn.IsLoggedIn(), user.Conn.IsLoginInProgress())
}
resp := map[string]interface{}{
"mxid": user.MXID,