mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add timestamp to lograge output.
This commit is contained in:
parent
7ab49acac2
commit
9112d2da3b
@ -11,7 +11,8 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["
|
|||||||
|
|
||||||
output = {
|
output = {
|
||||||
params: event.payload[:params].except(*exceptions),
|
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
|
output[:type] = :rails if logstash_uri
|
||||||
|
Loading…
Reference in New Issue
Block a user