Skip to content

Commit

Permalink
fixed GetLogModule function
Browse files Browse the repository at this point in the history
  • Loading branch information
msupernaw committed May 3, 2024
1 parent 652c1d6 commit 7586d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/include/common/fims_log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class FIMSLog {
std::stringstream ss;
std::vector<LogEntry> info;
for (size_t i = 0; i < log_entries.size(); i++) {
if (log_entries[i].file == module) {
if (log_entries[i].file.find(module) != std::string::npos) {
info.push_back(this->log_entries[i]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ print(rep$gradient.fixed)
cat(g$GetLog())


fims_log<-fromJSON(g$GetLog(),simplifyVector = FALSE)
fims_log<-fromJSON(g$GetLogModule("rcpp_interface") ,simplifyVector = FALSE)
for(i in 1:length(fims_log)){
print(fims_log[[i]])
}
Expand Down

0 comments on commit 7586d33

Please sign in to comment.