aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/interop
diff options
context:
space:
mode:
authorGravatar Naresh <ghostwriternr@gmail.com>2018-08-17 12:24:58 +0000
committerGravatar Naresh <ghostwriternr@gmail.com>2018-08-17 12:24:58 +0000
commita20e2073c1c53cbdd81a4fb750982a0b13e0c24e (patch)
treed7501b2580665a426caae2e29e05beb179cc711d /src/python/grpcio_tests/tests/interop
parent0a1d0d25a2392a0fa70d8ad54c572bdc726b62d3 (diff)
Configure module level loggers with basicConfig()
Module level loggers were introduced to gRPC Python in 06e1683, but missed configuring these, leading to 'No handler found for module' errors. Using the root logger implicitly calls basicConfig() which does the basic configuration for the logging system by creating a StreamHandler with a default Formatter and adding it to the logger. But this is not the case for module level loggers. Fix this issue by explicitly calling logging.basicConfig().
Diffstat (limited to 'src/python/grpcio_tests/tests/interop')
-rw-r--r--src/python/grpcio_tests/tests/interop/server.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/tests/interop/server.py b/src/python/grpcio_tests/tests/interop/server.py
index fd28d498a1..768cdaf468 100644
--- a/src/python/grpcio_tests/tests/interop/server.py
+++ b/src/python/grpcio_tests/tests/interop/server.py
@@ -25,6 +25,7 @@ from tests.interop import methods
from tests.interop import resources
from tests.unit import test_common
+logging.basicConfig()
_ONE_DAY_IN_SECONDS = 60 * 60 * 24
_LOGGER = logging.getLogger(__name__)