diff options
| author | 2023-05-10 11:57:48 +0100 | |
|---|---|---|
| committer | 2023-05-10 11:57:48 +0100 | |
| commit | fe4c512839f9f613fc5098e5a9d8c9a402e60aa0 (patch) | |
| tree | 8bf01388c2f66ebfaaa8efd2f47154958ce0bbae /src/logging.cpp | |
| parent | Show more details about unactivated/expired client certificates. (diff) | |
| download | inspircd++-fe4c512839f9f613fc5098e5a9d8c9a402e60aa0.tar.gz inspircd++-fe4c512839f9f613fc5098e5a9d8c9a402e60aa0.tar.bz2 inspircd++-fe4c512839f9f613fc5098e5a9d8c9a402e60aa0.zip | |
Rename duration to timeutils and relocate InspIRCd::TimeString.
Diffstat (limited to 'src/logging.cpp')
| -rw-r--r-- | src/logging.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 8dbc156be..11505ccb4 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -19,6 +19,7 @@ #include "inspircd.h" #include "clientprotocolmsg.h" +#include "timeutils.h" const char* Log::LevelToString(Log::Level level) { @@ -74,7 +75,7 @@ void Log::FileMethod::OnLog(time_t time, Level level, const std::string& type, c if (prevtime != time) { prevtime = time; - timestr = InspIRCd::TimeString(prevtime); + timestr = Time::ToString(prevtime); } fputs(timestr.c_str(), file); @@ -123,7 +124,7 @@ Log::MethodPtr Log::FileEngine::Create(const std::shared_ptr<ConfigTag>& tag) if (target.empty()) throw CoreException("<log:target> must be specified for file logger at " + tag->source.str()); - const std::string fulltarget = ServerInstance->Config->Paths.PrependLog(InspIRCd::TimeString(ServerInstance->Time(), target.c_str())); + const std::string fulltarget = ServerInstance->Config->Paths.PrependLog(Time::ToString(ServerInstance->Time(), target.c_str())); auto* fh = fopen(fulltarget.c_str(), "a"); if (!fh) { |
