From 206d31de85192353d03c74766e80513a87dc49b4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 23 Jan 2023 23:48:09 +0000 Subject: Convert log calls to use fmtlib format strings --- src/usermanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/usermanager.cpp') diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 43dc163fb..4262f6c92 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -137,7 +137,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, const irc::sockets::soc LocalUser* const New = new LocalUser(socket, client, server); UserIOHandler* eh = &New->eh; - ServerInstance->Logs.Debug("USERS", "New user fd: %d", socket); + ServerInstance->Logs.Debug("USERS", "New user fd: {}", socket); this->unknown_count++; this->clientlist[New->nick] = New; @@ -162,8 +162,8 @@ void UserManager::AddUser(int socket, ListenSocket* via, const irc::sockets::soc continue; const char* hooktype = i == via->iohookprovs.begin() ? "hook" : "sslprofile"; - ServerInstance->Logs.Warning("USERS", "Non-existent I/O hook '%s' in tag at %s", - iohookprovref.GetProvider().c_str(), hooktype, via->bind_tag->source.str().c_str()); + ServerInstance->Logs.Warning("USERS", "Non-existent I/O hook '{}' in tag at {}", + iohookprovref.GetProvider(), hooktype, via->bind_tag->source.str()); this->QuitUser(New, INSP_FORMAT("Internal error handling connection (misconfigured {})", hooktype)); return; } @@ -276,7 +276,7 @@ void UserManager::QuitUser(User* user, const std::string& quitmessage, const std operquitmsg.erase(ServerInstance->Config->Limits.MaxQuit + 1); user->quitting = true; - ServerInstance->Logs.Debug("USERS", "QuitUser: %s=%s '%s'", user->uuid.c_str(), user->nick.c_str(), quitmessage.c_str()); + ServerInstance->Logs.Debug("USERS", "QuitUser: {}={} '{}'", user->uuid, user->nick, quitmessage); if (localuser) { ClientProtocol::Messages::Error errormsg(INSP_FORMAT("Closing link: ({}) [{}]", user->MakeHost(), operquitmsg)); -- cgit v1.3.1-10-gc9f91