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
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}")
end

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

Loading…
Cancel
Save