diff --git a/inst/include/common/fims_log.hpp b/inst/include/common/fims_log.hpp index 58cd156..5c70735 100644 --- a/inst/include/common/fims_log.hpp +++ b/inst/include/common/fims_log.hpp @@ -80,7 +80,7 @@ struct LogEntry { ss << "\"user\" : " << "\"" << this->user << "\",\n"; ss << "\"wd\" : " << "\"" << this->wd << "\",\n"; ss << "\"file\" : " << "\"" << this->file << "\",\n"; - ss << "\"func\" : " << "\"" << this->func << "\",\n"; + ss << "\"routine\" : " << "\"" << this->func << "\",\n"; ss << "\"line\" : " << "\"" << this->line << "\"\n"; return ss.str(); } diff --git a/test/test.R b/test/test.R index 4ddfbbb..011aa05 100644 --- a/test/test.R +++ b/test/test.R @@ -97,8 +97,8 @@ for(i in 1:length(fims_log)){ print(fims_log[[i]]$id) print(fims_log[[i]]$level) print(fims_log[[i]]$message) - print(fims_log[[i]]$line) print(fims_log[[i]]$file) - print(fims_log[[i]]$func) + print(fims_log[[i]]$line) + print(fims_log[[i]]$routine) cat("\n\n") }