logError function was missing function name.