Skip to content

Commit 7f893c3

Browse files
Add actual useful log
1 parent 05c4d3e commit 7f893c3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
__pycache__/
33
.env
44
.azure
5-
.venv
5+
.venv
6+
.idea

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
initialise_database(app)
1616
initialise_scheduled_jobs(app)
1717

18-
logging.basicConfig(level=logging.INFO) # QQ
18+
logging.basicConfig(level=logging.INFO)
1919

2020

2121
@app.route("/")

scheduled_jobs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def process_orders(app):
3434
json=payload
3535
)
3636

37+
app.logger.info("Response from endpoint: " + response.text)
38+
3739
response.raise_for_status()
3840

3941
order.set_as_processed()

0 commit comments

Comments
 (0)