Skip to content

Commit

Permalink
Remove ":" in program_name of stream name (#207)
Browse files Browse the repository at this point in the history
CloudWatch log stream names cannot contain colons.
  • Loading branch information
SilentEroder authored Dec 30, 2024
1 parent be4790a commit b6140d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watchtower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def _get_machine_name(self):
def _get_stream_name(self, message):
return self.log_stream_name.format(
machine_name=self._get_machine_name(),
program_name=sys.argv[0],
program_name=sys.argv[0].replace(":", ""),
process_id=os.getpid(),
thread_name=threading.current_thread().name,
logger_name=message.name,
Expand Down

0 comments on commit b6140d0

Please sign in to comment.