Skip to content

Commit

Permalink
Fixing log attachment count bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoEmbrace committed Jan 27, 2025
1 parent b4f59c8 commit b2098c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/EmbraceCore/Internal/Logs/LogController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ class LogController: LogControllable {
// handle attachment data
if let attachment = attachment {

sessionController.increaseAttachmentCount()

let id = UUID().withoutHyphen
finalAttributes[LogSemantics.keyAttachmentId] = id

Expand All @@ -128,6 +126,8 @@ class LogController: LogControllable {
else {
upload?.uploadAttachment(id: id, data: attachment, completion: nil)
}

sessionController.increaseAttachmentCount()
}

// handle pre-uploaded attachment
Expand Down

0 comments on commit b2098c9

Please sign in to comment.