summaryrefslogtreecommitdiff
path: root/modules/operserv/reload.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
committerAdam <Adam@anope.org>2017-01-23 12:35:14 -0500
commit16ca76c2e7ab287e480185fbb03a0bb438351eda (patch)
treedfb25534afa2352b65b2ee707086cb5eecc96fbb /modules/operserv/reload.cpp
parentff030c1eb7c3764f9add2a689479e84d616cabcb (diff)
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'modules/operserv/reload.cpp')
-rw-r--r--modules/operserv/reload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/operserv/reload.cpp b/modules/operserv/reload.cpp
index ecff66ac2..fa79cd0d7 100644
--- a/modules/operserv/reload.cpp
+++ b/modules/operserv/reload.cpp
@@ -31,7 +31,7 @@ class CommandOSReload : public Command
{
try
{
- Log(LOG_ADMIN, source, this);
+ logger.Command(LogType::ADMIN, source, _("{source} used {command}"));
Configuration::Conf *new_config = new Configuration::Conf();
Configuration::Conf *old = Config;
@@ -43,7 +43,7 @@ class CommandOSReload : public Command
}
catch (const ConfigException &ex)
{
- Log(this->GetOwner()) << "Error reloading configuration file: " << ex.GetReason();
+ this->GetOwner()->logger.Log(_("Error reloading configuration file: {0}"), ex.GetReason());
source.Reply(_("Error reloading configuration file: {0}"), ex.GetReason());
}
}