Skip to content

Commit 9eff158

Browse files
committed
refactor: update files to reflect current logging practice
1 parent 75ea3d2 commit 9eff158

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"features": {
3-
"show_log_locally": false,
3+
"show_logs_in_terminal": false,
44
"write_data_locally": false
55
}
66
}

src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,12 @@ def handler(event: dict, context) -> str: # pylint: disable=unused-argument, to
222222

223223
features = get_dict_value(config, "features")
224224

225-
show_log_locally = get_dict_value(features, "show_log_locally")
225+
show_logs_in_terminal = get_dict_value(features, "show_logs_in_terminal")
226226

227227
write_data_locally = get_dict_value(features, "write_data_locally")
228228

229229
# Toggle local logging
230-
if show_log_locally:
230+
if show_logs_in_terminal:
231231
logging.basicConfig(
232232
level=logging.INFO,
233233
format="%(asctime)s %(levelname)s %(message)s",

0 commit comments

Comments
 (0)