From 46434d6cead6ce3b5a38d914f3bc44d981e9085e Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sun, 24 Dec 2023 22:22:35 +0800 Subject: [PATCH] Increased logs --- inst/include/stan/io/json/rapidjson_parser.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inst/include/stan/io/json/rapidjson_parser.hpp b/inst/include/stan/io/json/rapidjson_parser.hpp index 7341b3d..98a43f1 100644 --- a/inst/include/stan/io/json/rapidjson_parser.hpp +++ b/inst/include/stan/io/json/rapidjson_parser.hpp @@ -109,13 +109,17 @@ struct RapidJSONHandler { */ template void rapidjson_parse(std::istream &in, Handler &handler) { + Rcpp::Rcout << "f421" << std::endl; rapidjson::Reader reader; RapidJSONHandler filter(handler); rapidjson::IStreamWrapper isw(in); + Rcpp::Rcout << "f422" << std::endl; handler.start_text(); + Rcpp::Rcout << "f423" << std::endl; if (!reader.Parse(isw, filter)) { + Rcpp::Rcout << "f424" << std::endl; rapidjson::ParseErrorCode err = reader.GetParseErrorCode(); std::stringstream ss; ss << "Error in JSON parsing " << std::endl @@ -127,6 +131,7 @@ void rapidjson_parse(std::istream &in, Handler &handler) { } throw json_error(ss.str()); } + Rcpp::Rcout << "f425" << std::endl; handler.end_text(); } } // namespace json