[HUDI-1707] Reduces log level for too verbose messages from info to debug level. (#2714)
* Reduces log level for too verbose messages from info to debug level. * Sort config output. * Code Review : Small restructuring + rebasing to master - Fixing flaky multi delta streamer test - Using isDebugEnabled() checks - Some changes to shorten log message without moving to DEBUG Co-authored-by: volodymyr.burenin <volodymyr.burenin@cloudkitchens.com> Co-authored-by: Vinoth Chandar <vinoth@apache.org>
This commit is contained in:
committed by
GitHub
parent
511ac4881d
commit
8a48d16e41
@@ -64,7 +64,10 @@ public class HiveSchemaUtil {
|
||||
} catch (IOException e) {
|
||||
throw new HoodieHiveSyncException("Failed to convert parquet schema to hive schema", e);
|
||||
}
|
||||
LOG.info("Getting schema difference for " + tableSchema + "\r\n\r\n" + newTableSchema);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Getting schema difference for " + tableSchema + "\r\n\r\n" + newTableSchema);
|
||||
}
|
||||
|
||||
SchemaDifference.Builder schemaDiffBuilder = SchemaDifference.newBuilder(storageSchema, tableSchema);
|
||||
Set<String> tableColumns = new HashSet<>();
|
||||
|
||||
@@ -109,7 +112,9 @@ public class HiveSchemaUtil {
|
||||
schemaDiffBuilder.addTableColumn(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
LOG.info("Difference between schemas: " + schemaDiffBuilder.build().toString());
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Difference between schemas: " + schemaDiffBuilder.build().toString());
|
||||
}
|
||||
|
||||
return schemaDiffBuilder.build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user