Skip to content

Commit b268612

Browse files
committed
fix: print and log
1 parent 021719c commit b268612

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

settings.py

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
# pylint: disable-all
6767

6868
import json
69+
import logging
6970

7071
import boto3
7172

@@ -89,6 +90,9 @@ def check_for_pointer_file(S3_APP_BUCKET, S3_APP_KEY):
8990
def construct_db_config(S3_APP_BUCKET, S3_KEY, DB_DATA):
9091
s3 = boto3.client("s3")
9192

93+
print(f'connecting with bucket: "{S3_APP_BUCKET}", key: "{S3_KEY}"')
94+
logging.info(f'connecting with bucket: "{S3_APP_BUCKET}", key: "{S3_KEY}"')
95+
9296
cfg = s3.get_object(Bucket=S3_APP_BUCKET, Key=S3_KEY)
9397

9498
config = json.loads(cfg["Body"].read().decode("utf-8"))

0 commit comments

Comments
 (0)