Skip to content

Commit

Permalink
Merge pull request #15 from sematext/rename_location_field
Browse files Browse the repository at this point in the history
Rename field from location to geoip.location
  • Loading branch information
Rafał Kuć authored Jun 8, 2020
2 parents ec99bfb + f4f012c commit 967b683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Logsene.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Logsene'
s.version = '1.3.5'
s.version = '1.4.0'
s.summary = 'Sematext Cloud Logs is ELK as a Service. This library lets you collect mobile analytics and log data from your iOS applications.'

s.description = <<-DESC
Expand Down
4 changes: 3 additions & 1 deletion Logsene/Classes/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ private func enrichEvent(_ event: inout JsonObject) {
let lon: Double = event["lon"] as! Double
event.removeValue(forKey: "lat")
event.removeValue(forKey: "lon")
event["location"] = "\(lat),\(lon)"
var geoip: JsonObject = [:]
geoip["location"] = "\(lat),\(lon)"
event["geoip"] = geoip
}
}

Expand Down

0 comments on commit 967b683

Please sign in to comment.