You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2021/01/05 04:12:56 UTC

[incubator-nlpcraft] branch master updated (26d92d3 -> 8e078cc)

This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git.


    from 26d92d3  Switch to 2021 in (C).
     new 9a517e1  Naming cleanup.
     new 8e078cc  Remove dup logging from CLI.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala    | 9 ---------
 .../apache/nlpcraft/model/tools/embedded/NCEmbeddedResult.java   | 2 +-
 .../nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala       | 2 +-
 3 files changed, 2 insertions(+), 11 deletions(-)


[incubator-nlpcraft] 01/02: Naming cleanup.

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git

commit 9a517e1bc178d960747941706a252964eb2a2244
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Mon Jan 4 11:47:02 2021 -0800

    Naming cleanup.
---
 .../org/apache/nlpcraft/model/tools/embedded/NCEmbeddedResult.java      | 2 +-
 .../org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/embedded/NCEmbeddedResult.java b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/embedded/NCEmbeddedResult.java
index 3dbe984..3ece971 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/embedded/NCEmbeddedResult.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/embedded/NCEmbeddedResult.java
@@ -177,7 +177,7 @@ public interface NCEmbeddedResult {
      * 
      * @return Request processing log holder as JSON string.
      */
-    String getLogHolder();
+    String getLogHolderJson();
 
     /**
      * Gets ID of the intent that was matched against the input sentence. Only set if result was
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala
index 87b4614..7502cf5 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/probe/mgrs/nlp/NCProbeEnrichmentManager.scala
@@ -324,7 +324,7 @@ object NCProbeEnrichmentManager extends NCService with NCOpenCensusModelStats {
                     override val getErrorMessage: String = msg.dataOpt[String]("error").orNull
                     override val getErrorCode: Int = msg.dataOpt[Int]("errorCode").getOrElse(0)
                     override def getProbeId: String = Config.id
-                    override def getLogHolder: String = log.orNull
+                    override def getLogHolderJson: String = log.orNull
                     override def getIntentId: String = intentId.orNull
                 }
 


[incubator-nlpcraft] 02/02: Remove dup logging from CLI.

Posted by ar...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

aradzinski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git

commit 8e078cc43d2e8ec9b84c9315dab736fccd482a69
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Mon Jan 4 20:12:44 2021 -0800

    Remove dup logging from CLI.
---
 .../scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala    | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index ce0ad91..1fc828f 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -672,15 +672,6 @@ object NCCli extends App {
                     logServerInfo(beacon)
 
                     showTip()
-
-                    if (state.accessToken.isDefined) {
-                        val tbl = new NCAsciiTable()
-
-                        tbl += (s"${g("Email")}", state.userEmail.get)
-                        tbl += (s"${g("Access token")}", state.accessToken.get)
-
-                        logln(s"Signed in with default user:\n$tbl")
-                    }
                 }
             }
         }