Skip to content

Commit

Permalink
debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
BePPPower committed Mar 26, 2024
1 parent 35fbd61 commit 3c46e68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
import org.apache.logging.log4j.Logger;

import java.io.File;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.SimpleFormatter;

public class TrinoConnectorPluginLoader {
private static final Logger LOG = LogManager.getLogger(TrinoConnectorPluginLoader.class);
Expand All @@ -45,18 +42,6 @@ private static class TrinoConnectorPluginLoad {

static {
try {
// Trino uses jul as its own log system, so the attributes of JUL are configured here
System.setProperty("java.util.logging.SimpleFormatter.format",
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s: %5$s%6$s%n");
java.util.logging.Logger logger = java.util.logging.Logger.getLogger("");
logger.setUseParentHandlers(false);
FileHandler fileHandler = new FileHandler(EnvUtils.getDorisHome() + "/log/trinoconnector%g.log",
500000000, 10, true);
fileHandler.setLevel(Level.INFO);
fileHandler.setFormatter(new SimpleFormatter());
logger.addHandler(fileHandler);
java.util.logging.LogManager.getLogManager().addLogger(logger);

TypeOperators typeOperators = new TypeOperators();
featuresConfig = new FeaturesConfig();
TypeRegistry typeRegistry = new TypeRegistry(typeOperators, featuresConfig);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.apache.doris.datasource.trinoconnector;

import org.apache.doris.common.Config;
import org.apache.doris.common.EnvUtils;
import org.apache.doris.trinoconnector.TrinoConnectorPluginManager;

import com.google.common.util.concurrent.MoreExecutors;
Expand All @@ -32,9 +31,6 @@
import org.apache.logging.log4j.Logger;

import java.io.File;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.SimpleFormatter;

public class TrinoConnectorPluginLoader {
private static final Logger LOG = LogManager.getLogger(TrinoConnectorPluginLoader.class);
Expand All @@ -48,18 +44,6 @@ private static class TrinoConnectorPluginLoad {

static {
try {
// Trino uses jul as its own log system, so the attributes of JUL are configured here
System.setProperty("java.util.logging.SimpleFormatter.format",
"%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS %4$s: %5$s%6$s%n");
java.util.logging.Logger logger = java.util.logging.Logger.getLogger("");
logger.setUseParentHandlers(false);
FileHandler fileHandler = new FileHandler(EnvUtils.getDorisHome() + "/log/trinoconnector%g.log",
500000000, 10, true);
fileHandler.setLevel(Level.INFO);
fileHandler.setFormatter(new SimpleFormatter());
logger.addHandler(fileHandler);
java.util.logging.LogManager.getLogManager().addLogger(logger);

typeRegistry = new TypeRegistry(typeOperators, featuresConfig);
ServerPluginsProviderConfig serverPluginsProviderConfig = new ServerPluginsProviderConfig()
.setInstalledPluginsDir(new File(Config.trino_connector_plugin_dir));
Expand Down

0 comments on commit 3c46e68

Please sign in to comment.