Skip to content

Conversation

@szaimen
Copy link
Contributor

@szaimen szaimen commented Jan 16, 2026

@szaimen szaimen added this to the Nextcloud 33 milestone Jan 16, 2026
Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/52997/refactor-logging branch from e00ae8f to 287fe12 Compare January 16, 2026 10:15
@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 16, 2026
@szaimen szaimen marked this pull request as ready for review January 16, 2026 10:38
@szaimen szaimen requested a review from a team as a code owner January 16, 2026 10:38
@szaimen szaimen requested review from ArtificialOwl, CarlSchwan, ChristophWurst, icewind1991, juliusknorr, susnux and yemkareems and removed request for a team January 16, 2026 10:38
@susnux susnux requested review from come-nc and removed request for yemkareems January 16, 2026 11:25
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@szaimen
Copy link
Contributor Author

szaimen commented Jan 16, 2026

CI failure is unrelated afaics

@Altahrim Altahrim added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 16, 2026

// Check if a memory limit is configured and can be retrieved and determine log level
if ($memoryLimit !== null && $memoryLimit !== -1) {
$logLevel = match (true) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$logLevel = match (true) {
$memoryLimit = min(512_000_000, $memoryLimit);
$logLevel = match (true) {

I'd prefer this to be capped to 512M. We always want to log things when they are above ~300M, and not skip them because the developer uses 2G locally

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how this is currently implemented. However we get a lot of complaints by admins and users. See the issue I am trying to fix: #52997

Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen force-pushed the enh/52997/refactor-logging branch from 9d61e68 to 45d3c64 Compare January 16, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Excessive memory consumption for webdav: Request used more than 300 MB of RAM: 304.1 MB

5 participants