Fix logger debug flag