Add timestamp to lograge output.

This commit is contained in:
Guo Xiang Tan 2017-10-28 00:46:16 +08:00
parent 7ab49acac2
commit 9112d2da3b
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["
output = {
params: event.payload[:params].except(*exceptions),
database: RailsMultisite::ConnectionManagement.current_db
database: RailsMultisite::ConnectionManagement.current_db,
time: event.time,
}
output[:type] = :rails if logstash_uri