Use strsignal.

This commit is contained in:
Alexander Kuzmenkov 2019-12-09 16:52:52 +03:00
parent 47738615e6
commit 1879ac4477

View File

@ -174,7 +174,10 @@ public:
{ {
int sig = 0; int sig = 0;
DB::readBinary(sig, in); DB::readBinary(sig, in);
LOG_TRACE(log, "Received signal " << sig); // We may log some specific signals afterwards, with different log
// levels and more info, but for completeness we log all signals
// here at trace level.
LOG_TRACE(log, "Received signal " << strsignal(sig) << " (" << sig << ")");
if (sig == Signals::StopThread) if (sig == Signals::StopThread)
{ {