Replaced deprecated watchdog_exception() with \Drupal::logger(). also removed the Error::logException() fallback and the unused Error class import. Closes #3580842