aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 23:48:09 +0000
committerGravatar Sadie Powell2023-01-24 00:12:57 +0000
commit206d31de85192353d03c74766e80513a87dc49b4 (patch)
tree24fdee802c85c29b66a04901147d019e92e30931 /src/modules/extra/m_pgsql.cpp
parentConvert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. (diff)
Convert log calls to use fmtlib format strings
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
-rw-r--r--src/modules/extra/m_pgsql.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index fc4ec23c1..71c4299de 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -306,8 +306,8 @@ public:
bool HandleConnectError(const char* reason)
{
- ServerInstance->Logs.Error(MODNAME, "Could not connect to the \"%s\" database: %s",
- GetId().c_str(), reason);
+ ServerInstance->Logs.Error(MODNAME, "Could not connect to the \"{}\" database: {}",
+ GetId(), reason);
return false;
}
@@ -587,7 +587,7 @@ public:
minor = revision;
revision = 0;
}
- ServerInstance->Logs.Normal(MODNAME, "Module was compiled against libpq version %s and is running against version %d.%d.%d",
+ ServerInstance->Logs.Normal(MODNAME, "Module was compiled against libpq version {} and is running against version {}.{}.{}",
PG_VERSION, version / 10000, minor, revision);
}