only log error as warning if the logErrors init param is true