Skip to content

Commit cdb0a7c

Browse files
committed
Datadog logging.
1 parent d5c0a2d commit cdb0a7c

File tree

6 files changed

+364
-215
lines changed

6 files changed

+364
-215
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ update: env
4646

4747
.PHONY: format
4848
format: env
49-
$(shell . .venv/bin/activate && isort -rc ./)
49+
$(shell . .venv/bin/activate && isort ./)
5050
$(shell . .venv/bin/activate && black ./)
5151

5252

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
if [ -d ".venv" ]
44
then
5-
source .venv/bin/activate
5+
. .venv/bin/activate
66
pip install -r requirements.txt
77
python3 wsgi.py
88
else
99
python3 -m venv .venv
10-
source .venv/bin/activate
10+
. .venv/bin/activate
1111
python3 -m pip install --upgrade pip
1212
pip install -r requirements.txt
1313
python3 wsgi.py

flask_session_tutorial/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
from flask_login import LoginManager
44
from flask_session import Session
55
from flask_sqlalchemy import SQLAlchemy
6+
from ddtrace import patch_all
7+
68

79
db = SQLAlchemy()
810
login_manager = LoginManager()
911
sess = Session()
12+
patch_all()
1013

1114

1215
def create_app():

0 commit comments

Comments
 (0)