Skip to content

Commit

Permalink
Lower various logging statement levels to clean up example printing (a…
Browse files Browse the repository at this point in the history
…pache#30782)

* Lower various logging statement levels to clean up example printing

* revert statecache log level change
  • Loading branch information
hjtran authored Apr 5, 2024
1 parent 55f5a43 commit 2e630ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sdks/python/apache_beam/internal/gcp/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ def get_service_credentials(cls, pipeline_options):
# apitools use urllib with the global timeout. Set it to 60 seconds
# to prevent network related stuckness issues.
if not socket.getdefaulttimeout():
_LOGGER.info("Setting socket default timeout to 60 seconds.")
_LOGGER.debug("Setting socket default timeout to 60 seconds.")
socket.setdefaulttimeout(60)
_LOGGER.info(
_LOGGER.debug(
"socket default timeout is %s seconds.", socket.getdefaulttimeout())

cls._credentials = cls._get_service_credentials(pipeline_options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -761,10 +761,7 @@ def create_and_optimize_stages(

# Apply each phase in order.
for phase in phases:
_LOGGER.info('%s %s %s', '=' * 20, phase, '=' * 20)
stages = list(phase(stages, pipeline_context))
_LOGGER.debug('%s %s' % (len(stages), [len(s.transforms) for s in stages]))
_LOGGER.debug('Stages: %s', [str(s) for s in stages])

# Return the (possibly mutated) context and ordered set of stages.
return pipeline_context, stages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def get_worker_handlers(
self.state_servicer,
self._job_provision_info.for_environment(environment),
grpc_server)
_LOGGER.info(
_LOGGER.debug(
"Created Worker handler %s for environment %s (%s, %r)",
worker_handler,
environment_id,
Expand Down

0 comments on commit 2e630ac

Please sign in to comment.