Convert params hash to a query string instead of a hash when logging.

This commit is contained in:
Guo Xiang Tan 2017-11-08 15:19:45 +08:00
parent 6def5a344a
commit b840971b77
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ if (Rails.env.production? && SiteSetting.logging_provider == 'lograge') || ENV["
params[:files].map!(&:headers) if params[:files] params[:files].map!(&:headers) if params[:files]
output = { output = {
params: params, params: params.to_query,
database: RailsMultisite::ConnectionManagement.current_db, database: RailsMultisite::ConnectionManagement.current_db,
} }