Closed bursauxa closed 7 months ago
Do you have the same logfile spam if you run ;yourProject/clean; yourProject/assets/assets
? This plugin runs in compile scope so I don't think it would ever pick up logback config files from test resources.
Do you have the same logfile spam if you run
;yourProject/clean; yourProject/assets/assets
?
Yes, same thing with sbt assets:assets
.
Does conf/logback.xml
exist? Without any logback config file, it will output everything.
That was it, adding conf/logback.xml
removed the spam. We inject logback configurations during the pakcaging process (depending on target environment) but clearly this comes too late for the plugin. Thanks for the heads-up!
Hello, I am not sure whether this is a bug report or a question, but we have the following issue: when running tests in a project, the console output is filled with a large volume of debug logs from Swagger. In our case, which I assume this is proportionate to the number of endpoints, "large" means a couple of megabytes.
These logs from from the swagger library, here is an example:
Output is clean when running
sbt compile
, the logs only appear when runningsbt test
. We set the Logback configuration file/test/resources/logback.xml
to ignore all logs from swagger:Unfortunately it had no effect. It appears that this file is ignored during plugin execution (it does take effect in the tests themselves). We also tried
swaggerPlayValidate := false
inbuild.sbt
settings, but that did not help either.