Skip to content

Commit

Permalink
sender: fix join of empty tag
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Gavro <vgavro@gmail.com>
  • Loading branch information
vgavro committed Feb 15, 2022
1 parent ace80f4 commit cd59f46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def close(self):

def _make_packet(self, label, timestamp, data):
if label:
tag = '.'.join((self.tag, label))
tag = '.'.join((self.tag, label)) if self.tag else label
else:
tag = self.tag
packet = (tag, timestamp, data)
Expand Down

0 comments on commit cd59f46

Please sign in to comment.