Skip to content

Commit

Permalink
some small changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Apr 5, 2022
1 parent 06b78c3 commit 6a489d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/main/scala/cliche/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ object Config {
val seed = c.as[String]("cliche.seed").split(" ").toList
val compactJSON = c.as[Boolean]("cliche.json.compact")

println(s"# configs: network=$network json.compact=$compactJSON")
def print(): Unit = {
println(s"# loaded configs: network=$network json.compact=$compactJSON")
}
}
5 changes: 2 additions & 3 deletions src/main/scala/cliche/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ object Main {
// prevent netty/electrumclient to flood us with logs
InternalLoggerFactory.setDefaultFactory(JdkLoggerFactory.INSTANCE)

println("# load objects")
// print the configs we read
Config.print()

println("# initializing parameters")
var currentChainNode: Option[InetSocketAddress] = None
Expand All @@ -89,9 +90,7 @@ object Main {
var lastNormalResyncStamp: Long = 0L

LNParams.connectionProvider = new ClicheConnectionProvider

CommsTower.workers.values.map(_.pair).foreach(CommsTower.forget)

LNParams.logBag = DB.logBag

Config.network match {
Expand Down

0 comments on commit 6a489d3

Please sign in to comment.