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

Failed to display cast error #433

Open
redso-mankit opened this issue Oct 9, 2020 · 0 comments
Open

Failed to display cast error #433

redso-mankit opened this issue Oct 9, 2020 · 0 comments

Comments

@redso-mankit
Copy link

2020-10-09 20:49:38 +0800 [error]: Failed to set log entry field for http_request.undefined local variable or method `err' for #Fluent::GoogleCloudOutput:000000042cd6a8

https://github.com/GoogleCloudPlatform/fluent-plugin-google-cloud/blob/master/lib/fluent/plugin/out_google_cloud.rb#L1445

            rescue TypeError
              @log.error "Failed to #{cast_fn} for #{field_name}." \
                         "#{original_key} with value #{value.inspect}.", err

should be

            rescue TypeError => err
              @log.error "Failed to #{cast_fn} for #{field_name}." \
                         "#{original_key} with value #{value.inspect}.", err
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

1 participant