You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by sk...@apache.org on 2020/10/15 16:56:41 UTC
[phoenix] branch 4.x updated: PHOENIX-5946 (Addendum to use slf4j
logging) (#922)
This is an automated email from the ASF dual-hosted git repository.
skadam pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/4.x by this push:
new 264310b PHOENIX-5946 (Addendum to use slf4j logging) (#922)
264310b is described below
commit 264310bd1e6c14996c3cfb11557fc66a012cb01b
Author: Swaroopa Kadam <sw...@gmail.com>
AuthorDate: Thu Oct 15 09:56:31 2020 -0700
PHOENIX-5946 (Addendum to use slf4j logging) (#922)
---
.../main/java/org/apache/phoenix/schema/SchemaExtractionTool.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/phoenix-tools/src/main/java/org/apache/phoenix/schema/SchemaExtractionTool.java b/phoenix-tools/src/main/java/org/apache/phoenix/schema/SchemaExtractionTool.java
index d27dca1..8f0042b 100644
--- a/phoenix-tools/src/main/java/org/apache/phoenix/schema/SchemaExtractionTool.java
+++ b/phoenix-tools/src/main/java/org/apache/phoenix/schema/SchemaExtractionTool.java
@@ -31,11 +31,13 @@ import org.apache.hadoop.hbase.HBaseConfiguration;
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,
@@ -59,6 +61,7 @@ public class SchemaExtractionTool extends Configured implements Tool {
SchemaExtractionProcessor processor = new SchemaExtractionProcessor(tenantId,
conf, pSchemaName, pTableName);
output = processor.process();
+ LOGGER.info("Extracted DDL: " + output);
return 0;
}