Skip to content

Commit eac51ff

Browse files
committed
refactor: logging enabled by default
1 parent 2f18b6e commit eac51ff

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

config/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"features": {
3-
"show_logs_in_terminal": false,
43
"write_data_locally": false
54
}
65
}

src/main.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -222,17 +222,13 @@ def handler(event: dict, context) -> str: # pylint: disable=unused-argument, to
222222
config = get_config_file("./config/config.json")
223223

224224
features = get_dict_value(config, "features")
225-
226-
show_logs_in_terminal = get_dict_value(features, "show_logs_in_terminal")
227-
225+
228226
write_data_locally = get_dict_value(features, "write_data_locally")
229227

230-
# Toggle local logging
231-
if show_logs_in_terminal:
232-
logging.basicConfig(
233-
level=logging.INFO,
234-
format="%(asctime)s %(levelname)s %(message)s",
235-
)
228+
logging.basicConfig(
229+
level=logging.INFO,
230+
format="%(asctime)s %(levelname)s %(message)s",
231+
)
236232

237233
# Create an S3 client
238234
session = boto3.Session()

0 commit comments

Comments
 (0)