Fix incorrect usage of logger.log in daemonize()