diff --git a/index.js b/index.js
index 2077045808470f525c58ab69c4cb464bfb5a49a3..e0d41f32cd35cb540a2025fb75e790c5ad438d72 100644
--- a/index.js
+++ b/index.js
@@ -214,9 +214,9 @@ async function authenticate(login, password, baseUrl, apiAuthKey) {
     }),
   }
   try {
-    log('debug', 'REQUETE : ' + authRequest)
+    log('debug', 'REQUETE : ' + JSON.stringify(authRequest))
     const data = await fetch(baseUrl + '/connect.aspx', authRequest)
-    log('debug', 'DATA : ' + data)
+    log('debug', 'DATA : ' + JSON.stringify(data))
     const response = await data.json()
     log('debug', response)
 
@@ -227,6 +227,7 @@ async function authenticate(login, password, baseUrl, apiAuthKey) {
       throw new Error()
     }
   } catch (error) {
+    log('error', error)
     throw new Error(errors.LOGIN_FAILED)
   }
 }