Skip to content

Avoid huge exception argument logging - #24874

Merged
rullzer merged 1 commit into
masterfrom
enh/exception_logging
Dec 29, 2020
Merged

Avoid huge exception argument logging#24874
rullzer merged 1 commit into
masterfrom
enh/exception_logging

Conversation

@rullzer

Copy link
Copy Markdown
Member

In some cases it might happen that you have an argument that deep down
somewhere has an array with a lot of entries (think thousands). Now
before we would just happily print them all. Which would fill the log.

Now it will just print the first 5. And add a line that there are N
more.

If you are on debug level we will still print them all.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

In some cases it might happen that you have an argument that deep down
somewhere has an array with a lot of entries (think thousands). Now
before we would just happily print them all. Which would fill the log.
Now it will just print the first 5. And add a line that there are N
more.
If you are on debug level we will still print them all.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzerrullzer added enhancement 3. to review Waiting for reviews labels Dec 29, 2020
@rullzerrullzer added this to the Nextcloud 21 milestone Dec 29, 2020
@rullzer
rullzer merged commit c9fcf5f into masterDec 29, 2020
@rullzer
rullzer deleted the enh/exception_logging branch December 29, 2020 10:38
@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

@backportbot-nextcloud

Copy link
Copy Markdown

The backport to stable20 failed. Please do this backport manually.

@backportbot-nextcloud

Copy link
Copy Markdown

The backport to stable19 failed. Please do this backport manually.

@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

@rullzer

Copy link
Copy Markdown
MemberAuthor

/backport to stable19

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@rullzer@ChristophWurst@juliusknorr