Ajout support https
Print de debug convertis en logging