Log message cleanup
Removed std::endl from log messages.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Iec49cfb9d1c6fef8bdea2c88e203c45093e2973d
diff --git a/test/end2end/bp_handler.cpp b/test/end2end/bp_handler.cpp
index bcb0ac3..abdf90a 100644
--- a/test/end2end/bp_handler.cpp
+++ b/test/end2end/bp_handler.cpp
@@ -1,7 +1,5 @@
#include <attn/logging.hpp>
-#include <sstream>
-
namespace attn
{
@@ -9,9 +7,7 @@
void bpHandler()
{
// trace message
- std::stringstream ss;
- ss << "breakpoint handler";
- log<level::INFO>(ss.str().c_str());
+ log<level::INFO>("breakpoint handler");
}
} // namespace attn
diff --git a/test/end2end/logging.cpp b/test/end2end/logging.cpp
index 2833766..ba0add7 100644
--- a/test/end2end/logging.cpp
+++ b/test/end2end/logging.cpp
@@ -9,7 +9,7 @@
template <>
void log<INFO>(const char* i_message)
{
- std::cout << i_message;
+ std::cout << i_message << std::endl;
}
} // namespace attn
diff --git a/test/end2end/ti_handler.cpp b/test/end2end/ti_handler.cpp
index 50cc97b..7ffb76d 100644
--- a/test/end2end/ti_handler.cpp
+++ b/test/end2end/ti_handler.cpp
@@ -1,7 +1,5 @@
#include <attn/logging.hpp>
-#include <sstream>
-
namespace attn
{
@@ -9,9 +7,7 @@
void tiHandler()
{
// trace message
- std::stringstream ss;
- ss << "TI handler" << std::endl;
- log<level::INFO>(ss.str().c_str());
+ log<level::INFO>("TI handler");
}
} // namespace attn