From 7f125ad88368dd635820a9aa44b1dc8c7b84812c Mon Sep 17 00:00:00 2001 From: Joseph Mirabel <jmirabel@laas.fr> Date: Tue, 29 Jan 2019 16:45:22 +0100 Subject: [PATCH] Clean code. --- include/dynamic-graph/logger.h | 1 - src/debug/logger.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/dynamic-graph/logger.h b/include/dynamic-graph/logger.h index 31bd8dd..58e381b 100644 --- a/include/dynamic-graph/logger.h +++ b/include/dynamic-graph/logger.h @@ -166,7 +166,6 @@ namespace dynamicgraph { LoggerVerbosity getVerbosity(); protected: - std::ofstream m_output_fstream; /// Output File Stream LoggerVerbosity m_lv; /// verbosity of the logger double m_timeSample; /// specify the period of call of the countdown method double m_streamPrintPeriod; /// specify the time period of the stream prints diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp index cd37b19..3bb3542 100644 --- a/src/debug/logger.cpp +++ b/src/debug/logger.cpp @@ -32,14 +32,10 @@ namespace dynamicgraph m_printCountdown(0.0) { m_lv = VERBOSITY_ERROR; - // m_output_fstream.open("/tmp/dg-LOGS.txt",std::ofstream::out|std::ofstream::app); - //dgADD_OSTREAM_TO_RTLOG(m_output_fstream); } Logger::~Logger() { - //m_output_fstream.close(); - } void Logger::setVerbosity(LoggerVerbosity lv) @@ -89,9 +85,7 @@ namespace dynamicgraph else // otherwise reset counter and print it->second = m_streamPrintPeriod; } - // std::cout << msg.c_str() << std::endl; dgRTLOG() << msg.c_str() << "\n"; - //m_output_fstream.flush(); } bool Logger::setTimeSample(double t) -- GitLab