Skip to content

Commit

Permalink
chore: update deps and lock all of them only to major version
Browse files Browse the repository at this point in the history
RHINENG-10652
  • Loading branch information
jdobes authored and psegedy committed Jun 13, 2024
1 parent f27cd14 commit 34208ee
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 314 deletions.
7 changes: 4 additions & 3 deletions common/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os

import watchtower
from boto3.session import Session
from boto3 import client
from botocore.exceptions import ClientError

from .config import Config
Expand Down Expand Up @@ -49,15 +49,16 @@ def setup_cw_logging(main_logger):
logger.info("CloudWatch logging disabled due to missing access key")
return

session = Session(
boto3_client = client(
"logs",
aws_access_key_id=key_id,
aws_secret_access_key=secret,
region_name=CFG.cw_aws_region,
)

try:
handler = watchtower.CloudWatchLogHandler(
boto3_session=session,
boto3_client=boto3_client,
log_group=CFG.cw_aws_log_group,
stream_name=CFG.hostname,
)
Expand Down
Loading

0 comments on commit 34208ee

Please sign in to comment.