Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Prin committed Nov 4, 2016
1 parent 8e3a59a commit a81e8dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/logging-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ To automatically pick the default for your current environment, use
>>> client = google.cloud.logging.Client()
>>> handler = client.get_default_handler()
>>> cloud_logger = logging.getLogger('cloudLogger')
>>> cloud_logger.setLevel(logging.INFO) # defaults to WARN
>>> cloud_logger.setLevel(logging.INFO)
>>> cloud_logger.addHandler(handler)
>>> cloud_logger.error('bad news')
Expand Down Expand Up @@ -452,7 +452,7 @@ instance which will write directly to the API.
>>> client = google.cloud.logging.Client()
>>> handler = CloudLoggingHandler(client)
>>> cloud_logger = logging.getLogger('cloudLogger')
>>> cloud_logger.setLevel(logging.INFO) # defaults to WARN
>>> cloud_logger.setLevel(logging.INFO)
>>> cloud_logger.addHandler(handler)
>>> cloud_logger.error('bad news')
Expand Down
4 changes: 2 additions & 2 deletions logging/unit_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def test_get_default_handler_app_engine(self):
credentials=_Credentials(),
use_gax=False)

os.environ[_APPENGINE_FLEXIBLE_ENV_VM] = True
os.environ[_APPENGINE_FLEXIBLE_ENV_VM] = "True"
with _Monkey(_MUT, _LOG_PATH_TEMPLATE='{pid}'):
handler = client.get_default_handler()
self.assertIsInstance(handler, AppEngineHandler)
Expand All @@ -596,7 +596,7 @@ def test_get_default_handler_container_engine(self):
client = self._makeOne(project=self.PROJECT,
credentials=_Credentials(),
use_gax=False)
os.environ[_CONTAINER_ENGINE_ENV] = True
os.environ[_CONTAINER_ENGINE_ENV] = "True"
handler = client.get_default_handler()
self.assertIsInstance(handler, ContainerEngineHandler)
del os.environ[_CONTAINER_ENGINE_ENV]
Expand Down

0 comments on commit a81e8dd

Please sign in to comment.