2
0
mirror of https://github.com/VinylDNS/vinyldns synced 2025-08-22 02:02:14 +00:00

Quiet build output (#211)

* Quiet build output

* set the traceLevel in the build to -1, which means no exceptions
will be output when running
* set the akka.logLevel in a few files to `OFF` so we don't
log anything during tests
* Quiet portal exceptions
This commit is contained in:
Paul Cleary 2018-09-18 16:04:39 -04:00 committed by GitHub
parent 78a88e28bd
commit d608390f62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 5 deletions

View File

@ -74,7 +74,10 @@ lazy val testSettings = Seq(
parallelExecution in IntegrationTest := false,
fork in IntegrationTest := false,
testOptions in Test += Tests.Argument("-oDNCXEHPQRMIK"),
logBuffered in Test := false
logBuffered in Test := false,
// Hide stack traces in tests
traceLevel in Test := -1,
traceLevel in IntegrationTest := -1
)
lazy val apiSettings = Seq(

View File

@ -1,5 +1,5 @@
akka {
loglevel = "WARNING"
loglevel = "OFF"
log-dead-letters-during-shutdown = off
log-dead-letters = 0
logger-startup-timeout = 60s

View File

@ -1,5 +1,5 @@
akka {
loglevel = "WARNING"
loglevel = "OFF"
loggers = ["akka.testkit.TestEventListener"]
log-dead-letters-during-shutdown = off
log-dead-letters = 0

View File

@ -1,4 +1,4 @@
akka.loglevel = "OFF"
dynamodb {
class-name = "vinyldns.dynamodb.repository.DynamoDbDataStoreProvider"

View File

@ -1,4 +1,4 @@
akka.loglevel = "OFF"
dynamodb {
class-name = "vinyldns.dynamodb.repository.DynamoDbDataStoreProvider"

View File

@ -0,0 +1,21 @@
<configuration>
<conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{"yyyy-MM-dd HH:mm:ss,SSS"} %coloredLevel - %logger - %message%n%xException</pattern>
</encoder>
</appender>
<!--
The logger name is typically the Java/Scala package name.
This configures the log level to log at for a package and its children packages.
-->
<logger name="play" level="OFF" />
<logger name="application" level="OFF" />
<root level="OFF">
<appender-ref ref="STDOUT" />
</root>
</configuration>