aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/multiplex
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/multiplex')
-rw-r--r--examples/python/multiplex/multiplex_client.py2
-rw-r--r--examples/python/multiplex/multiplex_server.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/python/multiplex/multiplex_client.py b/examples/python/multiplex/multiplex_client.py
index 19d39ce66e..155f85c4b0 100644
--- a/examples/python/multiplex/multiplex_client.py
+++ b/examples/python/multiplex/multiplex_client.py
@@ -17,6 +17,7 @@ from __future__ import print_function
import random
import time
+import logging
import grpc
@@ -126,4 +127,5 @@ def run():
if __name__ == '__main__':
+ logging.basicConfig()
run()
diff --git a/examples/python/multiplex/multiplex_server.py b/examples/python/multiplex/multiplex_server.py
index 70dec3c939..c01824b3a9 100644
--- a/examples/python/multiplex/multiplex_server.py
+++ b/examples/python/multiplex/multiplex_server.py
@@ -16,6 +16,7 @@
from concurrent import futures
import time
import math
+import logging
import grpc
@@ -136,4 +137,5 @@ def serve():
if __name__ == '__main__':
+ logging.basicConfig()
serve()