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

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