Skip to content

Commit f05db88

Browse files
committed
make debug output less noisy
1 parent 306609a commit f05db88

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

h2/config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class DummyLogger(object):
2929
"""
3030
An Logger object that does not actual logging, hence a DummyLogger.
3131
32-
For the class the log operation is merely a no-op. The intent is to avoid
32+
For the class the log operation is merely a no-op. The intent is to avoid
3333
conditionals being sprinkled throughout the hyper-h2 code for calls to
3434
logging functions when no logger is passed into the corresponding object.
3535
"""
@@ -42,6 +42,12 @@ def debug(self, *vargs, **kwargs):
4242
"""
4343
pass
4444

45+
def trace(self, *vargs, **kwargs):
46+
"""
47+
No-op logging. Only level needed for now.
48+
"""
49+
pass
50+
4551

4652
class H2Configuration(object):
4753
"""

h2/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ def receive_data(self, data):
14501450
:returns: A list of events that the remote peer triggered by sending
14511451
this data.
14521452
"""
1453-
self.config.logger.debug(
1453+
self.config.logger.trace(
14541454
"Process received data on connection. Received data: %r", data
14551455
)
14561456

0 commit comments

Comments
 (0)