Remove some unnecessary calls to log.err and just print the error message instead.