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

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


The following commit(s) were added to refs/heads/NLPCRAFT-491 by this push:
     new e9d4618d WIP.
e9d4618d is described below

commit e9d4618d0b17b5303b7e9c54a019efd9ae426bdd
Author: Sergey Kamov <[email protected]>
AuthorDate: Fri Apr 8 16:03:37 2022 +0300

    WIP.
---
 .../java/org/apache/nlpcraft/examples/pizzeria/PizzeriaModel.scala  | 6 +++---
 .../nlpcraft/examples/pizzeria/cli/PizzeriaModelClientCli.scala     | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/nlpcraft-examples/pizzeria/src/main/java/org/apache/nlpcraft/examples/pizzeria/PizzeriaModel.scala
 
b/nlpcraft-examples/pizzeria/src/main/java/org/apache/nlpcraft/examples/pizzeria/PizzeriaModel.scala
index 878c5e6d..e173a974 100644
--- 
a/nlpcraft-examples/pizzeria/src/main/java/org/apache/nlpcraft/examples/pizzeria/PizzeriaModel.scala
+++ 
b/nlpcraft-examples/pizzeria/src/main/java/org/apache/nlpcraft/examples/pizzeria/PizzeriaModel.scala
@@ -68,9 +68,9 @@ class PizzeriaModel extends NCModelAdapter(new 
NCModelConfig("nlpcraft.pizzeria.
 
         try body.apply(o)
         finally
-            logger.info(s"'${im.getIntentId}' intent activated for text: 
'${im.getContext.getRequest.getText}'.")
-            logger.info(s"Initial order state: $initDesc, state: $initState.")
-            logger.info(s"Finish order state : ${o.getDesc}, state: 
${o.getState}.")
+            logger.info(s"Intent '${im.getIntentId}' activated for text: 
'${im.getContext.getRequest.getText}'.")
+            logger.info(s"Before call [desc=$initDesc, state: $initState.")
+            logger.info(s"After call  [desc=${o.getDesc}, state: 
${o.getState}.")
 
     private def askIsReady(o: PizzeriaOrder): NCResult =
         val res = NCResult(s"Is order ready?", ASK_DIALOG)
diff --git 
a/nlpcraft-examples/pizzeria/src/test/java/org/apache/nlpcraft/examples/pizzeria/cli/PizzeriaModelClientCli.scala
 
b/nlpcraft-examples/pizzeria/src/test/java/org/apache/nlpcraft/examples/pizzeria/cli/PizzeriaModelClientCli.scala
index 3690a84e..b2beb87a 100644
--- 
a/nlpcraft-examples/pizzeria/src/test/java/org/apache/nlpcraft/examples/pizzeria/cli/PizzeriaModelClientCli.scala
+++ 
b/nlpcraft-examples/pizzeria/src/test/java/org/apache/nlpcraft/examples/pizzeria/cli/PizzeriaModelClientCli.scala
@@ -86,4 +86,4 @@ object PizzeriaModelClientCli extends LazyLogging :
                     if applStarted then
                         e.printStackTrace()
                         println("Application exit.")
-                        System.exit(-1)
+                        System.exit(-1)
\ No newline at end of file

Reply via email to