[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 02/04: /service-config
From: |
gnunet |
Subject: |
[libeufin] 02/04: /service-config |
Date: |
Fri, 13 Nov 2020 14:31:58 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit cfbb0ee7ba0025e547deeca8edec0cb16d0b97bd
Author: MS <ms@taler.net>
AuthorDate: Fri Nov 13 13:50:32 2020 +0100
/service-config
---
nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt | 2 +-
.../main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 12 ++++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt
index 286e4d7..3af086a 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Scheduling.kt
@@ -90,7 +90,7 @@ object NexusCron {
fun startOperationScheduler(httpClient: HttpClient) {
GlobalScope.launch {
while (true) {
- logger.info("running schedule loop")
+ logger.trace("running schedule loop")
// First, assign next execution time stamps to all tasks that need
them
transaction {
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
index c31d7de..b5b0afb 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt
@@ -65,6 +65,7 @@ import tech.libeufin.util.*
import tech.libeufin.nexus.logger
import java.lang.IllegalArgumentException
import java.net.URLEncoder
+import java.nio.file.Paths
import java.util.zip.InflaterInputStream
@@ -279,13 +280,20 @@ fun serverMain(dbName: String, host: String) {
}
startOperationScheduler(client)
routing {
+ get("/service-config") {
+ call.respond(
+ object {
+ val dbConn =
"sqlite://${Paths.get(dbName).toAbsolutePath()}"
+ }
+ )
+ return@get
+ }
+
get("/config") {
call.respond(
object {
val version = "0.0.0"
val currency = "EUR"
- val databaseType = "sqlite"
- val databaseName = dbName
}
)
return@get
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.