diff options
| author | 2023-01-23 23:48:09 +0000 | |
|---|---|---|
| committer | 2023-01-24 00:12:57 +0000 | |
| commit | 206d31de85192353d03c74766e80513a87dc49b4 (patch) | |
| tree | 24fdee802c85c29b66a04901147d019e92e30931 /src/inspsocket.cpp | |
| parent | Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. (diff) | |
Convert log calls to use fmtlib format strings
Diffstat (limited to 'src/inspsocket.cpp')
| -rw-r--r-- | src/inspsocket.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index f4d123739..ac1cf4ae7 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -361,8 +361,8 @@ void StreamSocket::WriteData(const std::string& data) { if (!HasFd()) { - ServerInstance->Logs.Debug("SOCKET", "Attempt to write data to dead socket: %s", - data.c_str()); + ServerInstance->Logs.Debug("SOCKET", "Attempt to write data to dead socket: {}", + data); return; } @@ -466,8 +466,8 @@ void StreamSocket::OnEventHandlerRead() } catch (const CoreException& ex) { - ServerInstance->Logs.Normal("SOCKET", "Caught exception in socket processing on FD %d - '%s'", - GetFd(), ex.GetReason().c_str()); + ServerInstance->Logs.Normal("SOCKET", "Caught exception in socket processing on FD {} - '{}'", + GetFd(), ex.GetReason()); SetError(ex.GetReason()); } CheckError(I_ERR_OTHER); @@ -486,7 +486,7 @@ void StreamSocket::CheckError(BufferedSocketError errcode) { if (!error.empty()) { - ServerInstance->Logs.Debug("SOCKET", "Error on FD %d - '%s'", GetFd(), error.c_str()); + ServerInstance->Logs.Debug("SOCKET", "Error on FD {} - '{}'", GetFd(), error); OnError(errcode); } } |
