diff options
| author | 2023-01-23 23:48:09 +0000 | |
|---|---|---|
| committer | 2023-01-24 00:12:57 +0000 | |
| commit | 206d31de85192353d03c74766e80513a87dc49b4 (patch) | |
| tree | 24fdee802c85c29b66a04901147d019e92e30931 /src/modules/m_httpd.cpp | |
| parent | Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. (diff) | |
Convert log calls to use fmtlib format strings
Diffstat (limited to 'src/modules/m_httpd.cpp')
| -rw-r--r-- | src/modules/m_httpd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 72af19738..f5788d1af 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -81,7 +81,7 @@ private: { if (!messagecomplete) { - ServerInstance->Logs.Debug(MODNAME, "HTTP socket %d timed out", GetFd()); + ServerInstance->Logs.Debug(MODNAME, "HTTP socket {} timed out", GetFd()); Close(); return false; } @@ -215,8 +215,8 @@ public: // IOHook may have errored if (!GetError().empty()) { - ServerInstance->Logs.Debug(MODNAME, "HTTP socket %d encountered a hook error: %s", - GetFd(), GetError().c_str()); + ServerInstance->Logs.Debug(MODNAME, "HTTP socket {} encountered a hook error: {}", + GetFd(), GetError()); Close(); return; } @@ -244,8 +244,8 @@ public: void OnError(BufferedSocketError err) override { - ServerInstance->Logs.Debug(MODNAME, "HTTP socket %d encountered an error: %d - %s", - GetFd(), err, GetError().c_str()); + ServerInstance->Logs.Debug(MODNAME, "HTTP socket {} encountered an error: {} - {}", + GetFd(), err, GetError()); Close(); } @@ -254,7 +254,7 @@ public: if (!errstr) errstr = http_status_str((http_status)response); - ServerInstance->Logs.Debug(MODNAME, "Sending HTTP error %u: %s", response, errstr); + ServerInstance->Logs.Debug(MODNAME, "Sending HTTP error {}: {}", response, errstr); static HTTPHeaders empty; std::string data = INSP_FORMAT( "<html><head></head><body style='font-family: sans-serif; text-align: center'>" |
