Skip to content

Commit 14cee45

Browse files
hubertpjdunkerley
authored andcommitted
Reduce akka logs in PM and LS (#10967)
* Reduce akka logs in PM and LS After #10905 we suddenly got a lot of (useless) logs from akka in project-manager and language-server. After some investigation it turned out that akka-typed had a special configuration to enable logging in akka using slf4j. As we don't need the whole library for that I only stole the configuration. * nit * licensing * missing license files (cherry picked from commit 8b30998)
1 parent fa5cba4 commit 14cee45

File tree

11 files changed

+42
-25
lines changed

11 files changed

+42
-25
lines changed

build.sbt

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ lazy val `project-manager` = (project in file("lib/scala/project-manager"))
10331033
(Test / fork) := true,
10341034
(Compile / run / connectInput) := true,
10351035
commands += WithDebugCommand.withDebug,
1036-
libraryDependencies ++= akka ++ Seq(akkaTestkit % Test),
1036+
libraryDependencies ++= akka ++ Seq(akkaSLF4J, akkaTestkit % Test),
10371037
libraryDependencies ++= circe ++ helidon,
10381038
libraryDependencies ++= Seq(
10391039
"com.typesafe" % "config" % typesafeConfigVersion,
@@ -1521,26 +1521,27 @@ lazy val `language-server` = (project in file("engine/language-server"))
15211521
commands += WithDebugCommand.withDebug,
15221522
frgaalJavaCompilerSetting,
15231523
libraryDependencies ++= akka ++ circe ++ Seq(
1524-
"org.slf4j" % "slf4j-api" % slf4jVersion,
1525-
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
1526-
"io.circe" %% "circe-generic-extras" % circeGenericExtrasVersion,
1527-
"io.circe" %% "circe-literal" % circeVersion,
1528-
"dev.zio" %% "zio" % zioVersion,
1529-
"com.google.flatbuffers" % "flatbuffers-java" % flatbuffersVersion,
1530-
"commons-io" % "commons-io" % commonsIoVersion,
1531-
"com.github.pureconfig" %% "pureconfig" % pureconfigVersion,
1532-
akkaTestkit % Test,
1533-
"com.typesafe.akka" %% "akka-http-testkit" % akkaHTTPVersion % Test,
1534-
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
1535-
"org.scalacheck" %% "scalacheck" % scalacheckVersion % Test,
1536-
"org.graalvm.truffle" % "truffle-api" % graalMavenPackagesVersion % "provided",
1537-
"org.graalvm.sdk" % "polyglot-tck" % graalMavenPackagesVersion % "provided",
1538-
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion % "provided",
1539-
"org.eclipse.jgit" % "org.eclipse.jgit" % jgitVersion,
1540-
"org.bouncycastle" % "bcutil-jdk18on" % "1.76" % Test,
1541-
"org.bouncycastle" % "bcpkix-jdk18on" % "1.76" % Test,
1542-
"org.bouncycastle" % "bcprov-jdk18on" % "1.76" % Test,
1543-
"org.apache.tika" % "tika-core" % tikaVersion % Test
1524+
"org.slf4j" % "slf4j-api" % slf4jVersion,
1525+
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
1526+
"io.circe" %% "circe-generic-extras" % circeGenericExtrasVersion,
1527+
"io.circe" %% "circe-literal" % circeVersion,
1528+
"dev.zio" %% "zio" % zioVersion,
1529+
"com.google.flatbuffers" % "flatbuffers-java" % flatbuffersVersion,
1530+
"commons-io" % "commons-io" % commonsIoVersion,
1531+
"com.github.pureconfig" %% "pureconfig" % pureconfigVersion,
1532+
akkaSLF4J,
1533+
akkaTestkit % Test,
1534+
"com.typesafe.akka" %% "akka-http-testkit" % akkaHTTPVersion % Test,
1535+
"org.scalatest" %% "scalatest" % scalatestVersion % Test,
1536+
"org.scalacheck" %% "scalacheck" % scalacheckVersion % Test,
1537+
"org.graalvm.truffle" % "truffle-api" % graalMavenPackagesVersion % "provided",
1538+
"org.graalvm.sdk" % "polyglot-tck" % graalMavenPackagesVersion % "provided",
1539+
"org.netbeans.api" % "org-openide-util-lookup" % netbeansApiVersion % "provided",
1540+
"org.eclipse.jgit" % "org.eclipse.jgit" % jgitVersion,
1541+
"org.bouncycastle" % "bcutil-jdk18on" % "1.76" % Test,
1542+
"org.bouncycastle" % "bcpkix-jdk18on" % "1.76" % Test,
1543+
"org.bouncycastle" % "bcprov-jdk18on" % "1.76" % Test,
1544+
"org.apache.tika" % "tika-core" % tikaVersion % Test
15441545
),
15451546
Test / testOptions += Tests
15461547
.Argument(TestFrameworks.ScalaCheck, "-minSuccessfulTests", "1000"),

distribution/engine/THIRD-PARTY/NOTICE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ The license information can be found along with the copyright notices.
101101
Copyright notices related to this dependency can be found in the directory `com.typesafe.akka.akka-protobuf-v3_2.13-2.6.20`.
102102

103103

104+
'akka-slf4j_2.13', licensed under the Apache-2.0, is distributed with the engine.
105+
The license file can be found at `licenses/APACHE2.0`.
106+
Copyright notices related to this dependency can be found in the directory `com.typesafe.akka.akka-slf4j_2.13-2.6.20`.
107+
108+
104109
'akka-stream_2.13', licensed under the Apache-2.0, is distributed with the engine.
105110
The license file can be found at `licenses/APACHE2.0`.
106111
Copyright notices related to this dependency can be found in the directory `com.typesafe.akka.akka-stream_2.13-2.6.20`.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>

distribution/project-manager/THIRD-PARTY/NOTICE

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ The license information can be found along with the copyright notices.
8181
Copyright notices related to this dependency can be found in the directory `com.typesafe.akka.akka-protobuf-v3_2.13-2.6.20`.
8282

8383

84+
'akka-slf4j_2.13', licensed under the Apache-2.0, is distributed with the project-manager.
85+
The license file can be found at `licenses/APACHE2.0`.
86+
Copyright notices related to this dependency can be found in the directory `com.typesafe.akka.akka-slf4j_2.13-2.6.20`.
87+
88+
8489
'akka-stream_2.13', licensed under the Apache-2.0, is distributed with the project-manager.
8590
The license file can be found at `licenses/APACHE2.0`.
8691
Copyright notices related to this dependency can be found in the directory `com.typesafe.akka.akka-stream_2.13-2.6.20`.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>

engine/language-server/src/main/resources/application.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ akka {
2424
log-dead-letters = 1
2525
log-dead-letters-during-shutdown = off
2626
library-extensions = ["akka.stream.SystemMaterializer$"]
27+
use-slf4j = on
2728
}
2829

2930
logging-service {

lib/scala/project-manager/src/main/resources/application.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ akka {
1111
}
1212
log-dead-letters = 1
1313
log-dead-letters-during-shutdown = off
14+
use-slf4j = on
1415
}
1516

1617
logging-service {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
B8E190EAB26B4EEB4E2BB1F20210F07138FF38C839073ACA2204BE14329CB2AA
2-
1F2015D6CAFE507B4166169412A30F9675DB75495403F29DA86CFAB4E8B87511
1+
C718BB86771844038E1BB1BA727149161FF58ECBC8BC7D7F67184FFD380ED42D
2+
A4D2615997541FBF4E5539AF13EB9B21FD029529A4E832E2204E9D4FC4460CAE
33
0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
1EB73A5C745136872667FB588773B0698E04F9F42ACF7A8BEFFB5BC0FDC36A0B
2-
3D185D26D960B1B235E0F0CAE4ABACA05246566E65CAB48E1B65A1286CC31D93
1+
840F3CE1999E3571BB8F34C26AD16ECCE957B9C04F1B0F1929B1F00767BDFE23
2+
745841A9324FF45EBF74239F66CCC5C7E412D6270A7FAE08B1B1972B6C63A1B3
33
0

0 commit comments

Comments
 (0)