TLS works, logging not so much