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

Increase logging description - errors/warnings from processing don't describe source #1737

Closed
epcim opened this issue Nov 3, 2017 · 2 comments

Comments

@epcim
Copy link

epcim commented Nov 3, 2017

Check CONTRIBUTING guideline first and here is the list to help us investigate the problem.

I see following error in log, but no idea what filter/record/source/label it;s related:

2017-11-03 09:40:36 +0000 [warn]: #0 dump an error event: error_class=NoMethodError error="undefined method `merge!' for \"o\":String"
tag="openstack.neutron.server" time=#<Fluent::EventTime:0x00005587b65c65c8 @sec=1509702036, @nsec=192057421> record="o"

Another ocurence is

2017-11-03 09:40:36 +0000 [warn]: #0 dump an error event: error_class=TypeError error="can't dup Fixnum" tag="openstack.neutron.server"
 time=1 record=0
2017-11-03 09:40:36 +0000 [warn]: #0 dump an error event: error_class=TypeError error="can't dup Fixnum" tag="openstack.neutron.server"
 time=1 record=1
2017-11-03 09:40:36 +0000 [warn]: #0 dump an error event: error_class=TypeError error="can't dup Fixnum" tag="openstack.neutron.server"
 time=#<Fluent::EventTime:0x00005587b65c67f8 @sec=1509702036, @nsec=192047148> record=0
2017-11-03 09:40:36 +0000 [warn]: #0 dump an error event: error_class=TypeError error="can't dup Fixnum" tag="openstack.neutron.server"
 time=1 record=1

Obviously it's just wrong assumption about the value type and applying of a wrong method.

I have tried FLUENTD_OPT="-vv" but that didtn gave me much more (assuming then I am even more overloaded with too much details anyway). Each Error/Warning whould have had full 5W (where,what,why,when,who)...

If possible, please guide me what I can do more to resolve these two issues.

@epcim
Copy link
Author

epcim commented Nov 3, 2017

I have one more nice example

2017-11-03 14:40:27 +0000 [warn]: #0 dump an error event: error_class=NoMethodError error="undefined method `merge!' for [49, 49, 57]:A
rray" tag="openstack.neutron.server" time=#<Fluent::EventTime:0x0000564713af2b10 @sec=1509720027, @nsec=182093896> record=[49, 49, 57]

Please let me know how I may help you to fix that. Is that an obvious bug or do we have to change something in larger scope.

@repeatedly
Copy link
Member

Hmm... I see. Showing stacktrace is better in emit, not only error message.
I will add it.

repeatedly added a commit that referenced this issue Nov 14, 2017
repeatedly added a commit that referenced this issue Nov 14, 2017
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