diff --git a/index.js b/index.js index 349c8835a341d9e1965c6885f4093f29a68b8bd8..300687197920a33afdca610ea62a497c1f4ac1b5 100644 --- a/index.js +++ b/index.js @@ -228484,9 +228484,9 @@ async function findUserPdl( try { return parseUserPdl(parsedReply) } catch (error) { - log('error', 'Error while parsing user PDL: ' + error) + log('warn', 'Error while parsing user PDL: ' + error) log( - 'error', + 'warn', JSON.stringify({ appLogin, name, @@ -228496,10 +228496,10 @@ async function findUserPdl( escalierEtEtageEtAppartement, }) ) - log('error', JSON.stringify(parsedReply)) + log('warn', JSON.stringify(parsedReply)) if (parsedReply.Envelope.Body.Fault) { log( - 'error', + 'warn', `Enedis issue ${parsedReply.Envelope.Body.Fault.detail.erreur.resultat.$.code}: ${parsedReply.Envelope.Body.Fault.faultstring}` ) }