Skip to content

Commit 31641bd

Browse files
author
Bill Prin
committed
fix travis
1 parent be1ac4b commit 31641bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/logging-usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ To automatically pick the default for your current environment, use
406406
>>> client = google.cloud.logging.Client()
407407
>>> handler = client.get_default_handler()
408408
>>> cloud_logger = logging.getLogger('cloudLogger')
409-
>>> cloud_logger.setLevel(logging.INFO) # defaults to WARN
409+
>>> cloud_logger.setLevel(logging.INFO)
410410
>>> cloud_logger.addHandler(handler)
411411
>>> cloud_logger.error('bad news')
412412
@@ -452,7 +452,7 @@ instance which will write directly to the API.
452452
>>> client = google.cloud.logging.Client()
453453
>>> handler = CloudLoggingHandler(client)
454454
>>> cloud_logger = logging.getLogger('cloudLogger')
455-
>>> cloud_logger.setLevel(logging.INFO) # defaults to WARN
455+
>>> cloud_logger.setLevel(logging.INFO)
456456
>>> cloud_logger.addHandler(handler)
457457
>>> cloud_logger.error('bad news')
458458

logging/unit_tests/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def test_get_default_handler_app_engine(self):
582582
credentials=_Credentials(),
583583
use_gax=False)
584584

585-
os.environ[_APPENGINE_FLEXIBLE_ENV_VM] = True
585+
os.environ[_APPENGINE_FLEXIBLE_ENV_VM] = "True"
586586
with _Monkey(_MUT, _LOG_PATH_TEMPLATE='{pid}'):
587587
handler = client.get_default_handler()
588588
self.assertIsInstance(handler, AppEngineHandler)
@@ -596,7 +596,7 @@ def test_get_default_handler_container_engine(self):
596596
client = self._makeOne(project=self.PROJECT,
597597
credentials=_Credentials(),
598598
use_gax=False)
599-
os.environ[_CONTAINER_ENGINE_ENV] = True
599+
os.environ[_CONTAINER_ENGINE_ENV] = "True"
600600
handler = client.get_default_handler()
601601
self.assertIsInstance(handler, ContainerEngineHandler)
602602
del os.environ[_CONTAINER_ENGINE_ENV]

0 commit comments

Comments
 (0)