From 3a472b507e0dba06c44466b898d2fbf741eb8110 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 17 Nov 2017 08:54:53 +0800 Subject: [PATCH] FIX: `severity_name` was being logged incorrectly. --- lib/discourse_logstash_logger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_logstash_logger.rb b/lib/discourse_logstash_logger.rb index 6cf37f5616f..369e7e3c052 100644 --- a/lib/discourse_logstash_logger.rb +++ b/lib/discourse_logstash_logger.rb @@ -7,8 +7,8 @@ class DiscourseLogstashLogger sync: true, customize_event: ->(event) { event['hostname'] = `hostname`.chomp - event['severity'] = Object.const_get("Logger::Severity::#{event['severity']}") event['severity_name'] = event['severity'] + event['severity'] = Object.const_get("Logger::Severity::#{event['severity']}") event['type'] = type }, )