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

Large exceptions silently fail to log #7

Open
thesilverbadger opened this issue Jun 12, 2014 · 2 comments
Open

Large exceptions silently fail to log #7

thesilverbadger opened this issue Jun 12, 2014 · 2 comments

Comments

@thesilverbadger
Copy link

I've noticed an issue in an application I am currently writing, where if the stack trace (Elmah.Error.Detail) is overly large the exception will silently fail with a 400 Bad Request error when being persisted to table storage.

I believe this is due to the 64 KB column limit on table storage, as if I substring the Elmah.Error.Detail property to 5000 characters the exception gets logged (unmodified, the Elmah.Error.Detail is about 10000 chars).

I've added this check (and substring) in AzureTableStorageErrorLog.Log(Error error), but it's clearly a bit of a hack.

Any ideas? I have a unit test that'll show the problem, I'm happy to upload to a public repo and link to it.

@thesilverbadger
Copy link
Author

I've forked and added a unit test to demonstrate the problem I've encountered

@MisinformedDNA
Copy link
Owner

Can you submit a PR for this?

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

No branches or pull requests

2 participants