Skip to content

Commit 0fd9df0

Browse files
committed
Add logger.SetLevel() for the fastapi example.
Only then it works in the IPython shell
1 parent 94bcdc7 commit 0fd9df0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/fastapi_sample_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# init the logger as usual
1010
logger = logging.getLogger(__name__)
11+
logger.setLevel(logging.DEBUG)
1112

1213
@app.get('/')
1314
async def home():

0 commit comments

Comments
 (0)