railsware / newrelic_platform_plugins

MIT License
42 stars 66 forks source link

error while running newrelic_logwatcher_agent.rb file in windows #58

Open harishgarg0502 opened 7 years ago

harishgarg0502 commented 7 years ago

Hi, I am using Logwatcher Plugin for logs for my application.when i am running it on linux it is working fine but when i am running the same on windows it is giving error while running newrelic_logwatcher_agent.rb file.

Error i am getting is:-

C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/component.rb:14:in key': undefined method+' for nil:NilClass (NoMethodError) from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:101:in component_has_metrics?' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:85:inblock in build_components_array' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:84:in each' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:84:inbuild_components_array' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:69:in build_request_data_structure' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:16:indeliver' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin/run.rb:128:in loop_forever' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin/run.rb:15:insetup_and_run' from newrelic_Logwatcher_agent.rb:137:in <module:LogwatcherAgent>' from newrelic_Logwatcher_agent.rb:66:in

'