More debugging information and a bug fix for log location