You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by pa...@apache.org on 2019/10/04 17:50:53 UTC
[beam] branch master updated: use LOG.info instead of
System.out.println
This is an automated email from the ASF dual-hosted git repository.
pabloem 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 5c76769 use LOG.info instead of System.out.println
new c327f50 Merge pull request #9337 from sgrj/sj/BEAM-7977/change-std-out-to-logger
5c76769 is described below
commit 5c7676922ac90d583677dfb1cf064948cf2c8c2a
Author: Sebastian Jambor <se...@gmail.com>
AuthorDate: Wed Aug 14 12:00:21 2019 +0200
use LOG.info instead of System.out.println
---
.../main/java/org/apache/beam/runners/dataflow/DataflowRunner.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java b/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java
index 9128a1f..2bd7bb6 100644
--- a/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java
+++ b/runners/google-cloud-dataflow-java/src/main/java/org/apache/beam/runners/dataflow/DataflowRunner.java
@@ -796,7 +796,7 @@ public class DataflowRunner extends PipelineRunner<DataflowPipelineJob> {
checkState(
!"${pom.version}".equals(version),
"Unable to submit a job to the Dataflow service with unset version ${pom.version}");
- System.out.println("Dataflow SDK version: " + version);
+ LOG.info("Dataflow SDK version: {}", version);
newJob.getEnvironment().setUserAgent((Map) dataflowRunnerInfo.getProperties());
// The Dataflow Service may write to the temporary directory directly, so
@@ -973,7 +973,7 @@ public class DataflowRunner extends PipelineRunner<DataflowPipelineJob> {
"To access the Dataflow monitoring console, please navigate to {}",
MonitoringUtil.getJobMonitoringPageURL(
options.getProject(), options.getRegion(), jobResult.getId()));
- System.out.println("Submitted job: " + jobResult.getId());
+ LOG.info("Submitted job: {}", jobResult.getId());
LOG.info(
"To cancel the job using the 'gcloud' tool, run:\n> {}",