diff options
| author | 2023-01-24 23:41:50 +0000 | |
|---|---|---|
| committer | 2023-01-25 00:39:27 +0000 | |
| commit | af8effe4f0876d6fa934806745712f679bd36278 (patch) | |
| tree | b0d6de94d60dc5e116faa5e14b6029fb1c527886 /src/logging.cpp | |
| parent | Fix using (unsigned) long instead of (s)size_t. (diff) | |
Replace getInt/getUInt/getFloat with type safe templated functions.
Diffstat (limited to 'src/logging.cpp')
| -rw-r--r-- | src/logging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logging.cpp b/src/logging.cpp index 7251c515c..8dbc156be 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -131,7 +131,7 @@ Log::MethodPtr Log::FileEngine::Create(const std::shared_ptr<ConfigTag>& tag) tag->source.str(), strerror(errno))); } - const unsigned long flush = tag->getUInt("flush", 20, 1); + const unsigned long flush = tag->getNum<unsigned long>("flush", 20, 1); return std::make_shared<FileMethod>(fulltarget, fh, flush, true); } |
