{"action":"opened","issue":{"url":"https://api.github.com/repos/shadabahmed/logstasher/issues/90","labels_url":"https://api.github.com/repos/shadabahmed/logstasher/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/shadabahmed/logstasher/issues/90/comments","events_url":"https://api.github.com/repos/shadabahmed/logstasher/issues/90/events","html_url":"https://github.com/shadabahmed/logstasher/issues/90","id":113538802,"number":90,"title":"0.8 broken? Got spam in log","user":{"login":"ex0rcist","id":1577458,"avatar_url":"https://avatars.githubusercontent.com/u/1577458?v=3","gravatar_id":"","url":"https://api.github.com/users/ex0rcist","html_url":"https://github.com/ex0rcist","followers_url":"https://api.github.com/users/ex0rcist/followers","following_url":"https://api.github.com/users/ex0rcist/following{/other_user}","gists_url":"https://api.github.com/users/ex0rcist/gists{/gist_id}","starred_url":"https://api.github.com/users/ex0rcist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ex0rcist/subscriptions","organizations_url":"https://api.github.com/users/ex0rcist/orgs","repos_url":"https://api.github.com/users/ex0rcist/repos","events_url":"https://api.github.com/users/ex0rcist/events{/privacy}","received_events_url":"https://api.github.com/users/ex0rcist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-27T09:22:11Z","updated_at":"2015-10-27T09:22:11Z","closed_at":null,"body":"Hello! Last evening I've updated logstaher from 0.6.5 to 0.8 (even not thinking about it, just bundle update), and this morning I *accidentally* came to my Kibana instance that gathering logs from production, and ... WOW, 10 mil log entries! After update, logstaher has started to write some **** to logs like \"null\" and templates render messages. That was amazing experience. Please investigate :) \r\n\r\nHere is my production.rb\r\n```\r\n  config.logstasher.enabled = true\r\n  config.logstasher.suppress_app_log = false\r\n  config.logstasher.source = 'randewoo_production'\r\n  config.logstasher.logger_path = 'log/logstasher_production.log'\r\n  config.logstasher.backtrace = false\r\n```\r\n\r\nand initializer: \r\n\r\n```\r\nif LogStasher.enabled\r\n  LogStasher.add_custom_fields do |fields|\r\n    fields[:request_path] = request.path\r\n    fields[:site] = request.path =~ /^\\/api/ ? 'api' : 'frontend'\r\n\r\n    controller = \"#{params[:controller]}_params\".gsub(/\\//, '_')\r\n    fields[controller.to_sym] = params.reject { |k| ['controller', 'action'].include? k }\r\n  end\r\nend\r\n```\r\n\r\n"}}