correct logError to elog...