(ns metabase.core.bootstrap (:gen-class) (:require [clojure.java.io :as io])) | |
(set! *warn-on-reflection* true) | |
athena includes | (when-not (or (System/getProperty "log4j2.configurationFile") (System/getProperty "log4j.configurationFile")) ;; if the test config file from `test_resources` is on the claspath, e.g. in `clj -X:dev:test`, use that. (let [^String filename (if (io/resource "log4j2-test.xml") "log4j2-test.xml" "log4j2.xml")] (System/setProperty "log4j2.configurationFile" filename))) |
ensure we use a | (System/setProperty "log4j2.contextSelector" "org.apache.logging.log4j.core.selector.BasicContextSelector") |
ensure the [[clojure.tools.logging]] logger factory is the log4j2 version (slf4j is far slower and identified first) | (System/setProperty "clojure.tools.logging.factory" "clojure.tools.logging.impl/log4j2-factory") |
Main entrypoint. Invokes [[metabase.core.core/entrypoint]] | (defn -main [& args] (apply (requiring-resolve 'metabase.core.core/entrypoint) args)) |