aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/python/multiplex
diff options
context:
space:
mode:
authorGravatar Lidi Zheng <lidiz@google.com>2018-11-28 11:05:09 -0800
committerGravatar Lidi Zheng <lidiz@google.com>2018-11-30 09:56:40 -0800
commit5fc0547a94ce125e952a1782c4691e3902892ed4 (patch)
treed3ee86a5a8a5873460fdad3d689463bccb00be64 /examples/python/multiplex
parenta93b6012cc1ae0259118ba5bb4eff4c8634bd18c (diff)
Add basicConfig to prepare to log future exception
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()