Skip to content

Commit 97107b6

Browse files
committed
Resolve merge conflicts
2 parents 4844ea3 + 2d5850e commit 97107b6

File tree

14 files changed

+87
-3
lines changed

14 files changed

+87
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ docker run -d -p "8080:8080 -p 8082:8082" hmda-api
213213
The Filing API will run on `$(docker-machine ip):8080`
214214
The Public API will run on `$(docker-machine ip):8082`
215215

216+
By default, the `HDMA Platform` runs with a log level of `INFO`. This can be changed by establishing a different log level in the `HMDA_LOGLEVEL` environment variable.
217+
For the different logging options, see the [reference.conf](https://github.com/akka/akka/blob/master/akka-actor/src/main/resources/reference.conf#L38) default configuration file for `Akka`.
218+
216219
#### To run the entire platform
217220

218221
1. Ensure you have a Docker Machine with sufficient resources, as described in the [Docker](#docker) section above.

api/src/main/resources/application-dev.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
akka {
22
loggers = ["akka.event.slf4j.Slf4jLogger"]
33
loglevel = "INFO"
4+
loglevel = ${?HMDA_LOGLEVEL}
45
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
56
http.parsing.max-content-length = 1G
67
http.server.default-host-header = "cfpb.gov"

api/src/main/resources/application.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
akka {
22
loggers = ["akka.event.slf4j.Slf4jLogger"]
33
loglevel = "INFO"
4+
loglevel = ${?HMDA_LOGLEVEL}
45
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
56
http.parsing.max-content-length = 1G
67
http.server.default-host-header = "cfpb.gov"

api/src/main/resources/logback.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
<logger name="com.zaxxer.hikari" level="INFO" />
1919
<logger name="com.datastax.driver" level="INFO" />
2020
<logger name="org.apache.zookeeper" level="WARN" />
21+
<logger name="de.heikoseeberger.constructr" level="INFO"/>
2122

2223
</configuration>

cluster/src/main/resources/logback.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
<logger name="com.zaxxer.hikari" level="INFO" />
1919
<logger name="com.datastax.driver" level="INFO" />
2020
<logger name="org.apache.zookeeper" level="WARN" />
21+
<logger name="de.heikoseeberger.constructr" level="WARN" />
2122

2223
</configuration>

cluster/src/main/scala/hmda/cluster/HmdaPlatform.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ import hmda.util.FutureRetry.retry
3434
object HmdaPlatform extends App {
3535

3636
val log = LoggerFactory.getLogger("hmda")
37+
38+
log.info(
39+
"""
40+
| # # # # ###### # ######
41+
| # # ## ## # # # # # # # ## ##### ###### #### ##### # #
42+
| # # # # # # # # # # # # # # # # # # # # # ## ##
43+
| ####### # # # # # # # ###### # # # # ##### # # # # # ## #
44+
| # # # # # # ####### # # ###### # # # # ##### # #
45+
| # # # # # # # # # # # # # # # # # # # #
46+
| # # # # ###### # # # ###### # # # # #### # # # #
47+
|
48+
""".stripMargin
49+
)
50+
3751
val clusterRoleConfig = sys.env.get("HMDA_CLUSTER_ROLES").map(roles => s"akka.cluster.roles = [$roles]").getOrElse("")
3852
val clusterConfig = ConfigFactory.parseString(clusterRoleConfig).withFallback(configuration)
3953
val system = ActorSystem(clusterConfig.getString("clustering.name"), clusterConfig)

panel/src/main/resources/application.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
akka {
22
loglevel = "INFO"
3+
loglevel = ${?HMDA_LOGLEVEL}
34
actor.warn-about-java-serializer-usage = off
45
}
56

persistence-model/src/main/resources/application-dev.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
akka {
22
loglevel = "INFO"
3+
loglevel = ${?HMDA_LOGLEVEL}
34
actor {
45
warn-about-java-serializer-usage = on
56
serializers {

persistence-model/src/main/resources/application.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
akka {
2-
loglevel = "DEBUG"
2+
loglevel = "INFO"
3+
loglevel = ${?HMDA_LOGLEVEL}
34
actor {
45
warn-about-java-serializer-usage = on
56
serializers {

publication/src/main/resources/logback.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
<logger name="com.zaxxer.hikari" level="INFO" />
1919
<logger name="com.datastax.driver" level="INFO" />
2020
<logger name="org.apache.zookeeper" level="WARN" />
21+
<logger name="de.heikoseeberger.constructr" level="INFO"/>
2122

2223
</configuration>

0 commit comments

Comments
 (0)