Skip to content

Commit 5a52504

Browse files
committed
Silence hpack debug logging
This is an indirect dependency of betterproto/grpclib that pollutes the logs quite a bit, at least at the start. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent df1fd95 commit 5a52504

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/battery_pool.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ async def main() -> None:
2222
logging.basicConfig(
2323
level=logging.DEBUG, format="%(asctime)s %(name)s %(levelname)s:%(message)s"
2424
)
25+
# Reduce undesired noise from hpack
26+
logging.getLogger("hpack.hpack").setLevel(logging.INFO)
27+
2528
await microgrid.initialize(
2629
"grpc://microgrid.sandbox.api.frequenz.io:62060",
2730
resampler_config=ResamplerConfig(resampling_period=timedelta(seconds=1.0)),

0 commit comments

Comments
 (0)