From ae5c602980d71cff1b5ec9bacfc64d1ba147e280 Mon Sep 17 00:00:00 2001
From: gscalamera <graziano.scalamera@elettra.eu>
Date: Mon, 25 Sep 2023 11:15:28 +0200
Subject: [PATCH] Remove noisy print_exception

---
 src/alarm-thread.cpp |  2 +-
 src/event_table.cpp  | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/alarm-thread.cpp b/src/alarm-thread.cpp
index a3666bb..cb5d595 100644
--- a/src/alarm-thread.cpp
+++ b/src/alarm-thread.cpp
@@ -128,7 +128,7 @@ void alarm_thread::run(void *)
 			err << "exception running alarm thread: '" << ex.errors[0].desc << "'" << ends;
 			//WARN_STREAM << "alarm_thread::run(): " << err.str() << endl;	
 			printf("alarm_thread::run(): %s", err.str().c_str());
-			Tango::Except::print_exception(ex);
+			//Tango::Except::print_exception(ex);
 		}		
 		catch(...)
 		{
diff --git a/src/event_table.cpp b/src/event_table.cpp
index 7519c6e..315b627 100644
--- a/src/event_table.cpp
+++ b/src/event_table.cpp
@@ -41,8 +41,8 @@ void event_list::push_back(bei_t& e)
 		ostringstream err;
 		err << "exception  signaling omni_condition: '" << ex.errors[0].desc << "'";
 		//WARN_STREAM << "event_list::push_back(): " << err.str() << endl;	
-		printf("event_list::push_back: %s", err.str().c_str());
-		Tango::Except::print_exception(ex);	
+		//printf("event_list::push_back: %s", err.str().c_str());
+		//Tango::Except::print_exception(ex);	
 	}		
 	catch(...)
 	{
@@ -76,8 +76,8 @@ const bei_t event_list::pop_front(void)
 		ostringstream err;
 		err << "exception  waiting on omni_condition: '" << ex.errors[0].desc << "'";
 		//WARN_STREAM << "event_list::pop_front(): " << err.str() << endl;	
-		printf("event_list::pop_front: %s", err.str().c_str());
-		Tango::Except::print_exception(ex);
+		//printf("event_list::pop_front: %s", err.str().c_str());
+		//Tango::Except::print_exception(ex);
 		bei_t e;
 		this->unlock();
 		sleep(1);
@@ -1008,7 +1008,7 @@ void event_table::subscribe_events()
 					<< sig_name << "' error=" << ex_desc;
 				INFO_STREAM <<"event_table::"<<__func__<<": sig->attr->subscribe_event: " << o.str() << endl;
 				err = true;
-				Tango::Except::print_exception(e);
+				//Tango::Except::print_exception(e);
 				//sig->siglock->writerIn(); //not yet subscribed, no one can modify
 				sig->ex_reason = ex.ex_reason = ex_reason;
 				sig->ex_desc = ex.ex_desc = ex_desc;
-- 
GitLab