gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libeufin] branch master updated: logging ALL /ebicsweb req


From: gnunet
Subject: [GNUnet-SVN] [libeufin] branch master updated: logging ALL /ebicsweb requests data.
Date: Wed, 23 Oct 2019 15:16:41 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 2933038  logging ALL /ebicsweb requests data.
2933038 is described below

commit 29330380a762b3a1436224904382403e47cd525b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Oct 23 15:16:18 2019 +0200

    logging ALL /ebicsweb requests data.
---
 sandbox/src/main/kotlin/Main.kt | 4 ++--
 sandbox/src/main/kotlin/XML.kt  | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/sandbox/src/main/kotlin/Main.kt b/sandbox/src/main/kotlin/Main.kt
index 56378ad..ef42da3 100644
--- a/sandbox/src/main/kotlin/Main.kt
+++ b/sandbox/src/main/kotlin/Main.kt
@@ -276,6 +276,8 @@ private suspend fun 
ApplicationCall.adminCustomersKeyletter() {
 private suspend fun ApplicationCall.ebicsweb() {
 
     val body: String = receiveText()
+    logger.debug("Data received: $body")
+    
     val bodyDocument: Document? = xmlProcess.parseStringIntoDom(body)
 
     if (bodyDocument == null || (!xmlProcess.validateFromDom(bodyDocument))) {
@@ -530,8 +532,6 @@ private suspend fun ApplicationCall.ebicsweb() {
         else -> {
             /* Log to console and return "unknown type" */
             logger.info("Unknown message, just logging it!")
-            logger.debug(body)
-
             respond(
                 HttpStatusCode.NotImplemented,
                 SandboxError("Not Implemented")
diff --git a/sandbox/src/main/kotlin/XML.kt b/sandbox/src/main/kotlin/XML.kt
index 422742d..c9b96e4 100644
--- a/sandbox/src/main/kotlin/XML.kt
+++ b/sandbox/src/main/kotlin/XML.kt
@@ -177,8 +177,7 @@ class XML {
      */
     fun <T>convertDomToJaxb(finalType: Class<T>, document: Document) : 
JAXBElement<T> {
 
-        // val jc = JAXBContext.newInstance(finalType)
-        val jc = 
JAXBContext.newInstance("tech.libeufin.messages.ebics.keyresponse")
+        val jc = JAXBContext.newInstance(finalType)
 
         /* Marshalling the object into the document.  */
         val m = jc.createUnmarshaller()

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]