Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3a846bb

Browse files
dmalanKareem Zidane
authored andcommittedFeb 20, 2019
preparing to disable logging by default
1 parent 23c420e commit 3a846bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/cs50/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
import os
23
import sys
34

@@ -9,6 +10,9 @@
910
# In case student has files that shadow packages
1011
sys.path = [p for p in sys.path if p not in ("", os.getcwd())]
1112

13+
# Disable logger by default
14+
#logging.getLogger("cs50").disabled = True
15+
1216
# Import cs50_*
1317
from .cs50 import get_char, get_float, get_int, get_string
1418
try:

0 commit comments

Comments
 (0)
Please sign in to comment.