Skip to content

Commit

Permalink
Add Rollbar messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlang committed Oct 15, 2023
1 parent abba5b1 commit 4bf107e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tree Tracker/Services/ProtectEarth/ProtectEarthTreeService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ class ProtectEarthTreeService: TreeService {
)
.continueWith { (task) -> AnyObject? in
// stuff we want to do once the task is *STARTED*
Rollbar.infoMessage("S3 upload started", data: [
"bucket-path": "\(Secrets.awsBucketPrefix)/\(tree.treeId)",
"x-amz-meta-planted-at": tree.createDate?.ISO8601Format(),
"x-amz-meta-supervisor": tree.supervisor,
"x-amz-meta-latitude": latitude,
"x-amz-meta-longitude": longitude,
"x-amz-meta-site": tree.site,
"x-amz-meta-species": tree.species,
"x-amz-meta-phimageid": tree.phImageId,
"x-amz-meta-md5": md5
])
return nil
}
}
Expand Down

0 comments on commit 4bf107e

Please sign in to comment.