Fix logging: log debug to file handler