Skip to content

Commit b6140d0

Browse files
authored
Remove ":" in program_name of stream name (#207)
CloudWatch log stream names cannot contain colons.
1 parent be4790a commit b6140d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

watchtower/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def _get_machine_name(self):
338338
def _get_stream_name(self, message):
339339
return self.log_stream_name.format(
340340
machine_name=self._get_machine_name(),
341-
program_name=sys.argv[0],
341+
program_name=sys.argv[0].replace(":", ""),
342342
process_id=os.getpid(),
343343
thread_name=threading.current_thread().name,
344344
logger_name=message.name,

0 commit comments

Comments
 (0)