Replaced watchdog() calls with new logger API.