Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid huge exception argument logging #24874

Merged
merged 1 commit into from
Dec 29, 2020
Merged

Avoid huge exception argument logging #24874

merged 1 commit into from
Dec 29, 2020

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Dec 29, 2020

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>
@rullzer rullzer added enhancement 3. to review Waiting for reviews labels Dec 29, 2020
@rullzer rullzer added this to the Nextcloud 21 milestone Dec 29, 2020
@rullzer rullzer merged commit c9fcf5f into master Dec 29, 2020
@rullzer rullzer deleted the enh/exception_logging branch December 29, 2020 10:38
@rullzer
Copy link
Member Author

rullzer commented Dec 29, 2020

/backport to stable20

@rullzer
Copy link
Member Author

rullzer commented Dec 29, 2020

/backport to stable19

@backportbot-nextcloud
Copy link

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

@backportbot-nextcloud
Copy link

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

@rullzer
Copy link
Member Author

rullzer commented Dec 29, 2020

/backport to stable20

@rullzer
Copy link
Member Author

rullzer commented Dec 29, 2020

/backport to stable19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants