pabloem commented on a change in pull request #11166: [BEAM-7923] Emit info 
when capture control options are configured.
URL: https://github.com/apache/beam/pull/11166#discussion_r395231200
 
 

 ##########
 File path: sdks/python/apache_beam/runners/interactive/interactive_beam.py
 ##########
 @@ -64,11 +67,33 @@ def enable_capture_replay(self, value):
     and pipeline runs always use the same data captured; False - Disables
     capture of replayable source data so that following PCollection evaluation
     and pipeline runs always use new data from sources."""
+    # This makes sure the log handler is configured correctly in case the
+    # options are configured in an early stage.
+    _ = ie.current_env()
+    if value:
+      _LOGGER.info(
+          'Capture replay is enabled. When a PCollection is evaluated or the '
+          'pipeline is executed, existing data captured from previous '
+          'computations will be replayed for replayability. If no capture is '
+          'available, new data from capturable sources will be captured.')
+    else:
+      _LOGGER.info(
+          'You have disabled capture replay. The next time a PCollection is '
+          'evaluated or the pipeline is executed, new data will always be '
+          'captured from capturable sources. You will not have replayability '
 
 Review comment:
   ```suggestion
             'consumed from sources in the pipeline. You will not have 
replayability '
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to