aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-06-25 17:05:35 +0100
committerGravatar Sadie Powell2022-06-25 17:05:35 +0100
commita764d29de49c7f119526b54bfbc4741c5bdcda0c (patch)
treec091932e46f00e52481de9f809718bdbb9f65428 /include
parentFix an inverted condition in configparser. (diff)
Centralise the logging of malformed config values.
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h3
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