fix watchdog logging to file