FIX: `severity_name` was being logged incorrectly.

This commit is contained in:
Guo Xiang Tan 2017-11-17 08:54:53 +08:00
parent c7d024446e
commit 3a472b507e
1 changed files with 1 additions and 1 deletions

View File

@ -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
},
)