From a8f6d5c608dcd7747a4947b1ba6fd82b46b542a2 Mon Sep 17 00:00:00 2001 From: Sahil Lenka Date: Mon, 16 Feb 2026 06:16:49 +0530 Subject: [PATCH 1/2] improve error logging with file paths and context --- concore.hpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/concore.hpp b/concore.hpp index 65109afe..8257e8ef 100644 --- a/concore.hpp +++ b/concore.hpp @@ -353,17 +353,14 @@ class Concore{ ostringstream ss; ss << infile.rdbuf(); // reading data ins = ss.str(); - retrycount++; infile.close(); } else{ - retrycount++; throw 505; } } - //observed retry count in C++ from various tests is approx 80. catch(...){ - cout<<"Read error"; + cerr << "Error reading " << inpath << port << "/" << name << " (retry " << retry << ")" << endl; } retry++; } @@ -416,16 +413,13 @@ class Concore{ if(shmId_get != -1) { std::string message(sharedData_get, strnlen(sharedData_get, 256)); ins = message; - retrycount++; } else{ - retrycount++; throw 505; } } - //observed retry count in C++ from various tests is approx 80. catch(...){ - std::cout << "Read error" << std::endl; + cerr << "Error reading from shared memory port " << port << " name " << name << " (retry " << retry << ")" << endl; } retry++; } @@ -501,7 +495,7 @@ class Concore{ } catch(...){ - cout<<"skipping +"< Date: Mon, 16 Feb 2026 05:58:30 +0530 Subject: [PATCH 2/2] fix simtime update in write_FM and write_SM functions --- concore.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/concore.hpp b/concore.hpp index 8257e8ef..94931287 100644 --- a/concore.hpp +++ b/concore.hpp @@ -488,6 +488,7 @@ class Concore{ outfile<