aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CommandHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/CommandHandler.cpp')
-rw-r--r--src/profiling/CommandHandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/profiling/CommandHandler.cpp b/src/profiling/CommandHandler.cpp
index 49784056bf..86fa2571df 100644
--- a/src/profiling/CommandHandler.cpp
+++ b/src/profiling/CommandHandler.cpp
@@ -54,8 +54,12 @@ void CommandHandler::HandleCommands(IProfilingConnection& profilingConnection)
m_KeepRunning.store(false, std::memory_order_relaxed);
}
}
- catch (...)
+ catch (const Exception& e)
{
+ // Log the error
+ BOOST_LOG_TRIVIAL(warning) << "An error has occurred when handling a command: "
+ << e.what();
+
// Might want to differentiate the errors more
m_KeepRunning.store(false);
}