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

Adding Custom fields when request is Exception doesn't work #61

Open
ilonashub opened this issue Dec 30, 2014 · 3 comments
Open

Adding Custom fields when request is Exception doesn't work #61

ilonashub opened this issue Dec 30, 2014 · 3 comments

Comments

@ilonashub
Copy link

When adding custom fields in the logstasher initializer:

LogStasher.add_custom_fields do |fields| fields[:uid] = request.uuid end

I see that it adds the new field in the regular request @tags":["request"].

But when I have an exception (@tags":["request","exception"]) the new field is not being added to the log entry. Even if I try to debug I see that it doesn't even stop in the initializer code.

@maxstudener
Copy link

+1

1 similar comment
@davidsevcik
Copy link

+1

@liam-mitchell
Copy link

+1, I'd really like to know the referer for my logged exceptions.

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

4 participants