Make sure debug messages are written to the log when in daemon mode