added error log output