You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ja...@apache.org on 2014/06/11 05:52:07 UTC
[22/61] [abbrv] git commit: Log Drillbit environment at start up.
Log Drillbit environment at start up.
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/02263ed8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/02263ed8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/02263ed8
Branch: refs/heads/master
Commit: 02263ed8ce086800b8c9e0d8657d00f565d001a9
Parents: c04e1a8
Author: Aditya Kishore <ad...@maprtech.com>
Authored: Fri Jun 6 19:56:22 2014 -0700
Committer: Jacques Nadeau <ja...@apache.org>
Committed: Sun Jun 8 19:13:05 2014 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/drill/exec/server/Drillbit.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/02263ed8/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java b/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
index 38f2179..f6637cf 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/server/Drillbit.java
@@ -34,6 +34,7 @@ import org.apache.drill.exec.store.sys.PStoreProvider;
import org.apache.drill.exec.store.sys.PStoreRegistry;
import org.apache.drill.exec.store.sys.local.LocalPStoreProvider;
import org.apache.drill.exec.work.WorkManager;
+import org.apache.zookeeper.Environment;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ErrorHandler;
import org.eclipse.jetty.servlet.ServletContextHandler;
@@ -46,7 +47,11 @@ import com.google.common.io.Closeables;
* Starts, tracks and stops all the required services for a Drillbit daemon to work.
*/
public class Drillbit implements Closeable{
- static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Drillbit.class);
+ static final org.slf4j.Logger logger;
+ static {
+ logger = org.slf4j.LoggerFactory.getLogger(Drillbit.class);
+ Environment.logEnv("Drillbit environment:.", logger);
+ }
public static Drillbit start(StartupOptions options) throws DrillbitStartupException {
return start(DrillConfig.create(options.getConfigLocation()));