This commit is contained in:
2024-11-15 12:49:11 +03:00
parent 285f8de1f7
commit 221f595bcb
6 changed files with 23 additions and 16 deletions

View File

@@ -106,7 +106,7 @@ public:
std::vector<std::string> vsg;
std::ranges::transform(sig_range, std::back_inserter(vsg),
[](auto s) { return std::format("'{}'", sigdescr_np(s)); });
[](auto s) { return std::format("'{}' (No = {})", sigdescr_np(s), s); });
utils::AdcJoinRange(vsg, std::string_view(", "), sgs);
#else
@@ -184,7 +184,8 @@ protected:
virtual void signalReceived(std::error_code ec, int signo)
{
#ifdef _GNU_SOURCE
this->logInfo("The server received the signal: '{}' (ec = {})", sigdescr_np(signo), ec.message());
this->logInfo("The server received the signal: '{}' (No = {}, ec = {})", sigdescr_np(signo), signo,
ec.message());
#else
this->logInfo("The server received the signal: {} (ec = {})", signo, ec.message());
#endif