Add basicConfig to prepare to log future exception

pull/17322/head
Lidi Zheng 6 years ago
parent a93b6012cc
commit 5fc0547a94
  1. 2
      examples/python/helloworld/greeter_client.py
  2. 2
      examples/python/helloworld/greeter_client_with_options.py
  3. 2
      examples/python/helloworld/greeter_server.py
  4. 2
      examples/python/helloworld/greeter_server_with_reflection.py
  5. 2
      examples/python/interceptors/default_value/greeter_client.py
  6. 2
      examples/python/interceptors/headers/greeter_client.py
  7. 2
      examples/python/interceptors/headers/greeter_server.py
  8. 2
      examples/python/multiplex/multiplex_client.py
  9. 2
      examples/python/multiplex/multiplex_server.py
  10. 2
      examples/python/route_guide/route_guide_client.py
  11. 2
      examples/python/route_guide/route_guide_server.py

@ -14,6 +14,7 @@
"""The Python implementation of the GRPC helloworld.Greeter client."""
from __future__ import print_function
import logging
import grpc
@ -32,4 +33,5 @@ def run():
if __name__ == '__main__':
logging.basicConfig()
run()

@ -14,6 +14,7 @@
"""The Python implementation of the GRPC helloworld.Greeter client with channel options and call timeout parameters."""
from __future__ import print_function
import logging
import grpc
@ -41,4 +42,5 @@ def run():
if __name__ == '__main__':
logging.basicConfig()
run()

@ -15,6 +15,7 @@
from concurrent import futures
import time
import logging
import grpc
@ -43,4 +44,5 @@ def serve():
if __name__ == '__main__':
logging.basicConfig()
serve()

@ -15,6 +15,7 @@
from concurrent import futures
import time
import logging
import grpc
from grpc_reflection.v1alpha import reflection
@ -49,4 +50,5 @@ def serve():
if __name__ == '__main__':
logging.basicConfig()
serve()

@ -14,6 +14,7 @@
"""The Python implementation of the gRPC helloworld.Greeter client."""
from __future__ import print_function
import logging
import grpc
@ -39,4 +40,5 @@ def run():
if __name__ == '__main__':
logging.basicConfig()
run()

@ -14,6 +14,7 @@
"""The Python implementation of the GRPC helloworld.Greeter client."""
from __future__ import print_function
import logging
import grpc
@ -37,4 +38,5 @@ def run():
if __name__ == '__main__':
logging.basicConfig()
run()

@ -15,6 +15,7 @@
from concurrent import futures
import time
import logging
import grpc
@ -49,4 +50,5 @@ def serve():
if __name__ == '__main__':
logging.basicConfig()
serve()

@ -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()

@ -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()

@ -16,6 +16,7 @@
from __future__ import print_function
import random
import logging
import grpc
@ -116,4 +117,5 @@ def run():
if __name__ == '__main__':
logging.basicConfig()
run()

@ -16,6 +16,7 @@
from concurrent import futures
import time
import math
import logging
import grpc
@ -126,4 +127,5 @@ def serve():
if __name__ == '__main__':
logging.basicConfig()
serve()

Loading…
Cancel
Save