(boot! & [config])
Attempts to boot the Dirac Agent.
We want to make this function robust and safe to be called by :repl-options :init (Leiningen). It runs on a separate thread and waits there for nREPL server to come online.
The problem with lein repl
:init config is that it is evaluated before nREPL fully starts.
Actually it waits for this init code to fully evaluate before starting nREPL server.
Attempts to boot the Dirac Agent. We want to make this function robust and safe to be called by :repl-options :init (Leiningen). It runs on a separate thread and waits there for nREPL server to come online. The problem with `lein repl` :init config is that it is evaluated before nREPL fully starts. Actually it waits for this init code to fully evaluate before starting nREPL server.
(failed-to-start-dirac-agent-message max-boot-trials
trial-display
nrepl-server-url)
(maybe-setup-logging! config)
Calls dirac.logging/setup! if present.
Please note that under normal circumstances dirac.logging is not included in the Dirac library becasue that would bring in unwanted dependencies as discussed here https://github.com/binaryage/dirac/issues/44.
You can install a special version of the Dirac library with logging support included as described here: https://github.com/binaryage/dirac/blob/master/docs/faq.md#how-to-enable-debug-logging-in-dirac-agent
Calls dirac.logging/setup! if present. Please note that under normal circumstances dirac.logging is not included in the Dirac library becasue that would bring in unwanted dependencies as discussed here https://github.com/binaryage/dirac/issues/44. You can install a special version of the Dirac library with logging support included as described here: https://github.com/binaryage/dirac/blob/master/docs/faq.md#how-to-enable-debug-logging-in-dirac-agent
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close