Skip to content
Snippets Groups Projects
Commit 09b2a964 authored by Graziano Scalamera's avatar Graziano Scalamera
Browse files

Remove tabs and newlines from exception messages

parent 2d7f9a2f
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
//for get_event_system_for_event_id, to know if ZMQ //for get_event_system_for_event_id, to know if ZMQ
#include <eventconsumer.h> #include <eventconsumer.h>
#include <regex>
static const char __FILE__rev[] = __FILE__ " $Revision: 1.5 $"; static const char __FILE__rev[] = __FILE__ " $Revision: 1.5 $";
...@@ -1222,6 +1223,7 @@ void EventCallBack::push_event(Tango::EventData* ev) ...@@ -1222,6 +1223,7 @@ void EventCallBack::push_event(Tango::EventData* ev)
//e.ev_name = INTERNAL_ERROR; //e.ev_name = INTERNAL_ERROR;
//e.type = -1; //e.type = -1;
e.msg = o.str(); e.msg = o.str();
e.msg = std::regex_replace(e.msg, std::regex(R"((\n)|(\t))"), " "); //match raw string "\n" or "\t" and replace with " "
} }
} }
catch (string &err) { catch (string &err) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment