protected void logJobProperties() {
    if (this.jobProps != null &&
        this.jobProps.getBoolean(JOB_DUMP_PROPERTIES_IN_LOG, false)) {
      try {
        final Map<String, String> flattenedProps = this.jobProps.getFlattened();
        this.info("******   Job properties   ******");
        this.info(String.format("- Note : value is masked if property name ends with '%s'.",
            SENSITIVE_JOB_PROP_NAME_SUFFIX));
        for (final Map.Entry<String, String> entry : flattenedProps.entrySet()) {
          final String key = entry.getKey();
          final String value = key.endsWith(SENSITIVE_JOB_PROP_NAME_SUFFIX) ?
              SENSITIVE_JOB_PROP_VALUE_PLACEHOLDER :
              entry.getValue();
          this.info(String.format("%s=%s", key, value));
        }
        this.info("****** End Job properties  ******");
      } catch (final Exception ex) {
        this.error("failed to log job properties ", ex);
      }
    }
  }
protected void logJobProperties ( ) { if ( this . jobProps != null && this . jobProps . getBoolean ( JOB_DUMP_PROPERTIES_IN_LOG , false ) ) { try { final Map < String , String > flattenedProps = this . jobProps . getFlattened ( ) ; this . info ( "******   Job properties   ******" ) ; this . info ( String . format ( "- Note : value is masked if property name ends with '%s'." , SENSITIVE_JOB_PROP_NAME_SUFFIX ) ) ; for ( final Map . Entry < String , String > entry : flattenedProps . entrySet ( ) ) { final String key = entry . getKey ( ) ; final String value = key . endsWith ( SENSITIVE_JOB_PROP_NAME_SUFFIX ) ? SENSITIVE_JOB_PROP_VALUE_PLACEHOLDER : entry . getValue ( ) ; this . info ( String . format ( "%s=%s" , key , value ) ) ; } this . info ( "****** End Job properties  ******" ) ; } catch ( final Exception ex ) { this . error ( "failed to log job properties " , ex ) ; } } }
prints the current Job props to the Job log.