Skip to content

Commit 57ca2a7

Browse files
committed
Changed debugging config
1 parent c439f57 commit 57ca2a7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

intro_to_threading/fixrace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def locked_update(self, name):
2727
if __name__ == "__main__":
2828
format = "%(asctime)s: %(message)s"
2929
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
30-
# logging.basicConfig(format=format, level=logging.DEBUG, datefmt='%H:%M:%S')
30+
# logging.getLogger().setLevel(logging.DEBUG)
3131

3232
database = FakeDatabase()
3333
logging.info(

intro_to_threading/prodcom_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def consumer(pipeline, event):
6666

6767
if __name__ == "__main__":
6868
format = "%(asctime)s: %(message)s"
69-
# logging.basicConfig(format=format, level=logging.INFO, datefmt='%H:%M:%S')
70-
logging.basicConfig(format=format, level=logging.DEBUG, datefmt="%H:%M:%S")
69+
logging.basicConfig(format=format, level=logging.INFO, datefmt='%H:%M:%S')
70+
# logging.getLogger().setLevel(logging.DEBUG)
7171

7272
pipeline = Pipeline()
7373
event = threading.Event()

intro_to_threading/prodcom_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def consumer(pipeline):
6161
if __name__ == "__main__":
6262
format = "%(asctime)s: %(message)s"
6363
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
64-
# logging.basicConfig(format=format, level=logging.DEBUG, datefmt='%H:%M:%S')
64+
# logging.getLogger().setLevel(logging.DEBUG)
6565

6666
pipeline = Pipeline()
6767
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor:

intro_to_threading/prodcom_queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def consumer(pipeline, event):
4949
if __name__ == "__main__":
5050
format = "%(asctime)s: %(message)s"
5151
logging.basicConfig(format=format, level=logging.INFO, datefmt="%H:%M:%S")
52-
# logging.basicConfig(format=format, level=logging.DEBUG, datefmt='%H:%M:%S')
52+
# logging.getLogger().setLevel(logging.DEBUG)
5353

5454
pipeline = Pipeline()
5555
event = threading.Event()

0 commit comments

Comments
 (0)