Fork me on GitHub
#graphql
<
2021-10-14
>
fabrao00:10:24

Hello all, Is there any way to disable lacinia or lacinia pedestal debug messages from timbre?

hlship04:10:10

Lacinia doesn't do any logging, so I'm confused what debug messages you are talking about? Does timbre do something (I don't use it).

Lennart Buit05:10:05

Is it maybe pedestal or jetty debug logging?

fabrao12:10:03

yes, it´s pedestal and jetty

thumbnail12:10:06

Logging on the JVM is a bit... advanced 😬. There's a couple of log-frameworks like timbre or logback. You can set them up not to report debug messages from certain namespaces.

fabrao19:10:49

I discovered how to work with timbre and lacinia/lacinia-pedestal, and I´ll share with you: deps.edn dependencies

com.taoensso/timbre {:mvn/version "5.1.2"}
        com.fzakaria/slf4j-timbre {:mvn/version "0.3.21"}
        org.slf4j/slf4j-api {:mvn/version "1.7.32"}
(timbre/merge-config!
   {:ns-filter {:allow #{"*"} :deny #{"org.eclipse.jetty.*" "io.pedestal.*" "com.walmartlabs.lacinia.*"}}})
to disable all external logging stuffs !!!

👍 1
fabrao19:10:15

no config files at all !!!