Open terrisgit opened 6 years ago
If possible, it would be better to specify a version range instead of a specific version, to prevent version conflicts.
If you need this:
I ended up switching to https://github.com/kislyuk/watchtower (I liked that their requirements.txt
only listed boto3
, no other dependencies)
in my case it was breaking other parts of my instance (aws ecr get-login
stopped working)
The change was painless and everything seems to work perfectly
from:
from logbeam import CloudWatchLogsHandler
cw_handler = CloudWatchLogsHandler(
log_group_name='MY_GROUP_NAME',
log_stream_name='MY_STREAM_NAME',
logs_client=boto3.client('logs', region_name='MY_REGION'),
)
logger.addHandler(cw_handler)
to
from watchtower import CloudWatchLogHandler
cw_handler = CloudWatchLogHandler(
log_group='MY_GROUP_NAME',
stream_name='MY_STREAM_NAME',
boto3_session=boto3.session.Session(region_name='MY_REGION'),
)
logger.addHandler(cw_handler)
I switched to watchtower as well
logbeam currently uses awscli-1.9.8. I removed awscli and installed the latest version (1.14.30). logbeam worked fine but perhaps there are issues that I am not aware of.