Coherent log format

pull/15776/head
Alberto Miedes Garcés 4 years ago
parent 19c657f54b
commit bb3a290d13

@ -57,7 +57,7 @@ class Carto::BoundingBoxService
} }
end end
rescue PG::Error => exception rescue PG::Error => exception
log_error(exception: exception, table: @table_name) log_error(exception: exception, table: { name: @table_name })
raise BoundingBoxError.new("Can't calculate the bounding box for table #{@table_name}. ERROR: #{exception}") raise BoundingBoxError.new("Can't calculate the bounding box for table #{@table_name}. ERROR: #{exception}")
end end

@ -175,9 +175,8 @@ module Carto
message: 'Error in named maps API', message: 'Error in named maps API',
current_user: @user, current_user: @user,
action: action, action: action,
request_url: response.request.url, request: { url: response.request.url },
status: response.code, response: { status: response.code, body: response.body }
response_body: response.body
) )
end end
end end

Loading…
Cancel
Save