logging not working