Skip to content
Snippets Groups Projects
Commit dd1027c2 authored by Hoop77's avatar Hoop77
Browse files

-

parent 9e616642
No related merge requests found
...@@ -37,9 +37,9 @@ void Logger::log(AsyncState::Ptr state) ...@@ -37,9 +37,9 @@ void Logger::log(AsyncState::Ptr state)
[state](const auto & error, auto & responseMessage) [state](const auto & error, auto & responseMessage)
{ {
if (!responseMessage.empty()) if (!responseMessage.empty())
std::cout << responseMessage << "\n"; std::cout << responseMessage;
state->self->timer->startTimeout(1ms, [state] state->self->timer->startTimeout(100ms, [state]
{ state->self->log(state); }); { state->self->log(state); });
}); });
} }
......
...@@ -60,7 +60,7 @@ void Logging::onInit() ...@@ -60,7 +60,7 @@ void Logging::onInit()
void Logging::logMessage(const std::string & msg) void Logging::logMessage(const std::string & msg)
{ {
std::lock_guard<std::mutex> lock{loggingMutex}; std::lock_guard<std::mutex> lock{loggingMutex};
loggingStream << msg; loggingStream << msg << "\n";
} }
void Logging::ccDataCallback(const ccDataMsg::ConstPtr & inMsg) void Logging::ccDataCallback(const ccDataMsg::ConstPtr & inMsg)
......
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