diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2021-01-04 16:12:22 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2021-01-04 16:12:40 +0000 |
commit | 7377ca34854ee6c217481a0cb9aec9d5f6e75958 (patch) | |
tree | ef9e48e8cfba3927cb6d437289347622603d8481 | |
parent | cypress: workaround an issue related to focus and replying comments. (diff) | |
download | online-7377ca34854ee6c217481a0cb9aec9d5f6e75958.tar.gz online-7377ca34854ee6c217481a0cb9aec9d5f6e75958.zip |
Remind admins of the costs of high log levels.
private/michael/master
Change-Id: Ie83ec794eb0962b6ecf3f1f7b201390d19fb0958
-rw-r--r-- | wsd/LOOLWSD.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 039c3e08e8..0bf86a3b35 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -3975,6 +3975,9 @@ int LOOLWSD::innerMain() Log::logger().setLevel(LogLevel); } + if (Log::logger().getLevel() >= Poco::Message::Priority::PRIO_INFORMATION) + LOG_ERR("Log level is set very high to '" << LogLevel << "' this will have a " + "significant performance impact. Do not use this in production."); #endif // URI with /contents are public and we don't need to anonymize them. |