You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by al...@apache.org on 2020/07/07 01:17:31 UTC

[beam] branch master updated: Remove the non-actional warning message

This is an automated email from the ASF dual-hosted git repository.

altay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 3271efe  Remove the non-actional warning message
     new 6b450cf  Merge pull request #12178 from KevinGG/clean
3271efe is described below

commit 3271efe16127d2052711dc7284be1bdbfe572ce2
Author: Ning Kang <ni...@google.com>
AuthorDate: Mon Jul 6 12:09:48 2020 -0700

    Remove the non-actional warning message
---
 sdks/python/apache_beam/utils/interactive_utils.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/sdks/python/apache_beam/utils/interactive_utils.py b/sdks/python/apache_beam/utils/interactive_utils.py
index a1afb20..20bd64a 100644
--- a/sdks/python/apache_beam/utils/interactive_utils.py
+++ b/sdks/python/apache_beam/utils/interactive_utils.py
@@ -23,10 +23,6 @@ For experimental usage only; no backwards-compatibility guarantees.
 
 from __future__ import absolute_import
 
-import logging
-
-_LOGGER = logging.getLogger(__name__)
-
 
 def is_in_ipython():
   """Determines if current code is executed within an ipython session."""
@@ -77,12 +73,6 @@ def alter_label_if_ipython(transform, pvalueish):
     from IPython import get_ipython
     prompt = get_ipython().execution_count
     pipeline = _extract_pipeline_of_pvalueish(pvalueish)
-    if not pipeline:
-      _LOGGER.warning(
-          'Failed to alter the label of a transform with the '
-          'ipython prompt metadata. Cannot figure out the pipeline '
-          'that the given pvalueish %s belongs to. Thus noop.',
-          pvalueish)
     if (pipeline
         # We only alter for transforms to be applied to user-defined pipelines
         # at pipeline construction time.