Uh oh!
There was an error while loading. Please reload this page.
refactor(CapabilitiesManager): log slow capabilities in a single message - #58971
Conversation
e31f263 to
76b8024Compared284eaa to
89aa1edComparecome-nc
commented
Mar 17, 2026
The point of the log line was for users to report the bug to the application developers I believe. Is it happening a lot? |
szaimen
commented
Mar 17, 2026
Unfortunately if the system is under high load, this reporting feature leads to a lot of false-positives if the response time increases due to the high load. So I would rather only enable it in debug mode. Added the reasoning to the PR description. |
Uh oh!
There was an error while loading. Please reload this page.
25b9cbe to
3f68ab4Comparenickvergessen
commented
Mar 24, 2026
I think it's wrong to not log when its not debug. Then no one will ever see this as it's no longer being logged on prod and locally most data sets and connections are quick anyway. |
szaimen
commented
Mar 24, 2026
This sounds generally like a good idea. How could this technically be implemented? |
sorbaugh
commented
Jun 11, 2026
@szaimen since this PR reads like a different approach was agreed upon, I'm unsure if this should be kept open or not? |
szaimen
commented
Jun 11, 2026
I didnt get an answer for #58971 (comment) yet |
nickvergessen
commented
Jun 12, 2026
I have no real idea, but basically we could collect all slow capabilities and then log a single message with all the times and the highest applicable level. Then it's at least only 1 log. |
…enabled Signed-off-by: Simon L. <szaimen@e.mail.de> Co-Authored-By: Anna <anna@nextcloud.com>
Instead of logging one message per slow capability (and only in debug mode), collect all slow capabilities and emit a single log entry with all timings, using the highest applicable log level. Signed-off-by: Simon L. <szaimen@e.mail.de> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Simon L. <szaimen@e.mail.de>
3f68ab4 to
3881d9bCompareszaimen
commented
Jun 15, 2026
See 3881d9b |
Instead of logging one message per slow capability (and only in debug
mode), collect all slow capabilities and emit a single log entry with
all timings, using the highest applicable log level.
Signed-off-by: Simon L. szaimen@e.mail.de
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com