Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Allow packet's release/env to override client settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jonstaryuk authored and mattrobenolt committed Jan 21, 2018
1 parent 32a1379 commit 563b81f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,13 @@ func (client *Client) Capture(packet *Packet, captureTags map[string]string) (ev
return
}

packet.Release = release
packet.Environment = environment
if packet.Release == "" {
packet.Release = release
}

if packet.Environment == "" {
packet.Environment = environment
}

outgoingPacket := &outgoingPacket{packet, ch}

Expand Down

0 comments on commit 563b81f

Please sign in to comment.