diff options
| author | 2022-06-25 17:05:35 +0100 | |
|---|---|---|
| committer | 2022-06-25 17:05:35 +0100 | |
| commit | a764d29de49c7f119526b54bfbc4741c5bdcda0c (patch) | |
| tree | c091932e46f00e52481de9f809718bdbb9f65428 /include | |
| parent | Fix an inverted condition in configparser. (diff) | |
Centralise the logging of malformed config values.
Diffstat (limited to 'include')
| -rw-r--r-- | include/configreader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h index 9d4a9d1f9..7a155af9a 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -133,6 +133,9 @@ public: /** Retrieves the underlying map of config entries. */ inline const Items& GetItems() const { return items; } inline Items& GetItems() { return items; } + + /** @internal Logs that the value of a config field is malformed. */ + void LogMalformed(const std::string& key, const std::string& val, const std::string& def, const std::string& reason) const; }; /** Defines the server's length limits on various length-limited |
