From a516c5df82cc623ac40db078ee96e1ee9c3d5cc0 Mon Sep 17 00:00:00 2001 From: OsamaSayegh Date: Fri, 7 Feb 2020 13:32:50 +0000 Subject: [PATCH] DEV: Bump logster version to 2.6.1 and enable new logster feature Logster 2.6.1 includes a few new features and fixes. More details here: https://github.com/discourse/logster/blob/58bb5c536890b146871d29fb4ead3178393195ed/CHANGELOG.md --- Gemfile.lock | 2 +- config/initializers/100-logster.rb | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3a2bdf4a050..82114deca2d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -171,7 +171,7 @@ GEM logstash-event (1.2.02) logstash-logger (0.26.1) logstash-event (~> 1.2) - logster (2.5.1) + logster (2.6.1) loofah (2.4.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) diff --git a/config/initializers/100-logster.rb b/config/initializers/100-logster.rb index 99873698087..95a3e09e7f2 100644 --- a/config/initializers/100-logster.rb +++ b/config/initializers/100-logster.rb @@ -150,3 +150,15 @@ if Rails.configuration.multisite chained && chained.first.formatter = RailsMultisite::Formatter.new end end + +Logster.config.project_directories = [ + { path: Rails.root.to_s, url: "https://github.com/discourse/discourse", main_app: true } +] +Discourse.plugins.each do |plugin| + next if !plugin.metadata.url + + Logster.config.project_directories << { + path: "#{Rails.root.to_s}/plugins/#{plugin.directory_name}", + url: plugin.metadata.url + } +end