Add argument to logErrors method.