Fork me on GitHub

Hello! Does anyone have experience getting figwheel-main to work in a sane way with timbre? I get tons of debug output "DEBUG [org.eclipse.jetty..." when I load timbre and the *->slf4j->timbre redirectors.


Is there some Clojure code that figwheel-main will execute on startup (where I could configure Timbre)? A special namespace or so?

Jan K10:02:33

@urzds I am starting figwheel with the API and do (taoensso.timbre/merge-config! {:ns-blacklist ["org.eclipse.jetty.*"]}) before that. Maybe there's an easier way that I don't know.


@jkr.sw Thanks! I created a custom -main function in a figwheel-dev namespace, which I use instead of figwheel.main now. (It just calls timbre/set-level! followed by figwheel.main.)


greetings! please help:

$ clojure -m figwheel.main -w src -co foo.cljs.edn -c
2019-02-19 19:52:38.818:INFO::main: Logging initialized @4770ms
[Figwheel] Compiling build foo to "main.js"
[Figwheel] Failed to compile build gains in 0.12 seconds.
[Figwheel:WARNING] Compile Exception: error=2, No such file or directory  
[Figwheel:SEVERE] error=2, No such file or directory
I can't even figure out which such file


 :optimizations :none
 :output-to     "main.js"
 :install-deps  true
 :npm-deps      {...}
 :figwheel      {:verbose       true
                 :log-file "figwheel-main.log"}}


$ clj -m figwheel.main -co "{... :install-deps true :npm-deps {...}}" -c
[Figwheel:SEVERE] error=2, No such file or directory
Exception in thread "main" Cannot run program "npm": error=2, No such file or directory