removed calls to error_log