Skip to content

Commit

Permalink
lwc-events: add trace log for bad events payload (#1734)
Browse files Browse the repository at this point in the history
In some cases we see serialization fail. Add a trace level
log to help debug those that will output the toString value
for the payload.
  • Loading branch information
brharrington authored Dec 6, 2024
1 parent af77996 commit 3d371fb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class RemoteLwcEventClient(registry: Registry, config: Config)
} catch {
case e: Exception =>
logger.warn("failed to send events", e)
logger.trace(s"failed event payload: $payload", e)
droppedSend.increment(payload.size)
}
}
Expand Down

0 comments on commit 3d371fb

Please sign in to comment.