forked from MirrorHub/mautrix-whatsapp
Fix wrong log type
This commit is contained in:
parent
449943bef8
commit
eb2c66c753
1 changed files with 2 additions and 1 deletions
|
@ -250,6 +250,7 @@ func (prov *ProvisioningAPI) Ping(w http.ResponseWriter, r *http.Request) {
|
|||
"is_logged_in": user.Conn.IsLoggedIn(),
|
||||
"is_login_in_progress": user.Conn.IsLoginInProgress(),
|
||||
}
|
||||
user.log.Debugln("Pinging WhatsApp mobile due to /ping API request")
|
||||
err := user.Conn.AdminTest()
|
||||
var errStr string
|
||||
if err != nil {
|
||||
|
@ -259,7 +260,7 @@ 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)",
|
||||
user.log.Debugfln("Admin test response for /ping: %v (conn: %t, login: %t, in progress: %t)",
|
||||
err, user.Conn.IsConnected(), user.Conn.IsLoggedIn(), user.Conn.IsLoginInProgress())
|
||||
}
|
||||
resp := map[string]interface{}{
|
||||
|
|
Loading…
Reference in a new issue