diff options
author | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-23 12:35:14 -0500 |
commit | 16ca76c2e7ab287e480185fbb03a0bb438351eda (patch) | |
tree | dfb25534afa2352b65b2ee707086cb5eecc96fbb /include/extensible.h | |
parent | ff030c1eb7c3764f9add2a689479e84d616cabcb (diff) |
Make log system use newer format strings
Also allow log messages to be translatable
Diffstat (limited to 'include/extensible.h')
-rw-r--r-- | include/extensible.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/extensible.h b/include/extensible.h index 2e1079631..cc18b5e5c 100644 --- a/include/extensible.h +++ b/include/extensible.h @@ -137,7 +137,7 @@ T* Extensible::GetExt(const Anope::string &name) if (ref) return ref->Get(this); - Log(LOG_DEBUG) << "GetExt for nonexistent type " << name << " on " << static_cast<const void *>(this); + Anope::Logger.Debug("GetExt for nonexistent type {0} on {1}", name, static_cast<void *>(this)); return NULL; } @@ -151,7 +151,7 @@ T* Extensible::Extend(const Anope::string &name, const T &what) return ref->Get(this); } - Log(LOG_DEBUG) << "Extend for nonexistent type " << name << " on " << static_cast<void *>(this); + Anope::Logger.Debug("Extend for nonexistent type {0} on {1}", name, static_cast<void *>(this)); return NULL; } @@ -162,6 +162,6 @@ void Extensible::Shrink(const Anope::string &name) if (ref) ref->Unset(this); else - Log(LOG_DEBUG) << "Shrink for nonexistent type " << name << " on " << static_cast<void *>(this); + Anope::Logger.Debug("Shrink for nonexistent type {0} on {1}", name, static_cast<void *>(this)); } |