Removing error_log calls