[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: less logs verbosity
From: |
gnunet |
Subject: |
[libeufin] branch master updated: less logs verbosity |
Date: |
Wed, 22 Jun 2022 15:56:57 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 5409cec9 less logs verbosity
5409cec9 is described below
commit 5409cec94642af6c74f7addac0198c853ae86bbc
Author: MS <ms@taler.net>
AuthorDate: Wed Jun 22 15:56:43 2022 +0200
less logs verbosity
---
nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt | 2 +-
sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 4 +---
sandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt | 2 +-
util/src/main/kotlin/HTTP.kt | 4 ++--
4 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt
index b22fc7f2..a3f70793 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsNexus.kt
@@ -134,7 +134,7 @@ private suspend fun fetchEbicsC5x(
when (response) {
is EbicsDownloadSuccessResult -> {
response.orderData.unzipWithLambda {
- logger.debug("Camt entry (filename (in the Zip archive):
${it.first}): ${it.second}")
+ // logger.debug("Camt entry (filename (in the Zip archive):
${it.first}): ${it.second}")
storeCamt(bankConnectionId, it.second, historyType)
}
}
diff --git
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 4ec3af1b..e8368b4f 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -857,8 +857,7 @@ private suspend fun ApplicationCall.handleEbicsIni(header:
EbicsUnsecuredRequest
val plainOrderData = InflaterInputStream(orderData.inputStream()).use {
it.readAllBytes()
}
- println("INI order data: ${plainOrderData.toString(Charsets.UTF_8)}")
-
+ //println("INI order data: ${plainOrderData.toString(Charsets.UTF_8)}")
val keyObject =
EbicsOrderUtil.decodeOrderDataXml<SignatureTypes.SignaturePubKeyOrderData>(orderData)
val sigPubXml = keyObject.signaturePubKeyInfo.pubKeyValue.rsaKeyValue
val sigPub = CryptoUtil.loadRsaPublicKeyFromComponents(sigPubXml.modulus,
sigPubXml.exponent)
@@ -921,7 +920,6 @@ private suspend fun ApplicationCall.handleEbicsHpb(
}
val validationResult =
XMLUtil.verifyEbicsDocument(requestDocument,
subscriberKeys.authenticationPublicKey)
- logger.info("validationResult: $validationResult")
if (!validationResult) {
throw EbicsKeyManagementError("invalid signature", "90000")
}
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt
index a85aa2c5..632d94ee 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/XMLEbicsConverter.kt
@@ -35,7 +35,7 @@ class XMLEbicsConverter : ContentConverter {
* Not always a error: the content negotiation might have
* only checked if this handler could convert the response.
*/
- logger.info("Could not use XML custom converter for this
response.")
+ // logger.info("Could not use XML custom converter for this
response.")
return null
}
return OutputStreamContent({
diff --git a/util/src/main/kotlin/HTTP.kt b/util/src/main/kotlin/HTTP.kt
index 94ec837d..368c2c87 100644
--- a/util/src/main/kotlin/HTTP.kt
+++ b/util/src/main/kotlin/HTTP.kt
@@ -146,7 +146,7 @@ fun getHTTPBasicAuthCredentials(request:
ApplicationRequest): Pair<String, Strin
*/
fun getAuthorizationHeader(request: ApplicationRequest): String {
val authorization = request.headers["Authorization"]
- logger.debug("Found Authorization header: $authorization")
+ // logger.debug("Found Authorization header: $authorization")
return authorization ?: throw UtilError(
HttpStatusCode.Unauthorized, "Authorization header not found",
LibeufinErrorCode.LIBEUFIN_EC_AUTHENTICATION_FAILED
@@ -159,7 +159,7 @@ fun getAuthorizationHeader(request: ApplicationRequest):
String {
* will then be compared with the one kept into the database.
*/
fun extractUserAndPassword(authorizationHeader: String): Pair<String, String> {
- logger.debug("Authenticating: $authorizationHeader")
+ // logger.debug("Authenticating: $authorizationHeader")
val (username, password) = try {
// FIXME/note: line below doesn't check for "Basic" presence.
val split = authorizationHeader.split(" ")
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.