Skip to content

Commit

Permalink
PHOENIX-5946 (Addendum to use slf4j logging) (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
swaroopak authored and Swaroopa Kadam committed Oct 15, 2020
1 parent fe7c46c commit 628fa0d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@

import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;
import java.util.logging.Logger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SchemaExtractionTool extends Configured implements Tool {

private static final Logger LOGGER = Logger.getLogger(SchemaExtractionTool.class.getName());
private static final Logger LOGGER = LoggerFactory.getLogger(SchemaExtractionTool.class);
private static final Option HELP_OPTION = new Option("h", "help",
false, "Help");
private static final Option TABLE_OPTION = new Option("tb", "table", true,
Expand All @@ -59,6 +61,7 @@ public int run(String[] args) throws Exception {
SchemaExtractionProcessor processor = new SchemaExtractionProcessor(tenantId,
conf, pSchemaName, pTableName);
output = processor.process();
LOGGER.info("Extracted DDL: " + output);
return 0;
}

Expand Down

0 comments on commit 628fa0d

Please sign in to comment.