question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add model name to the logs in CLI

See original GitHub issue

Description of Problem: It would be more informative if the name of the model which is currently being loaded is displayed in the logs for CLI commands like rasa shell rasa shell nlu rasa run

Overview of the Solution:

(tensorflow) PS O:\Office\Chatbot\HealthCareChatbot\Chatbot\latest_vtest> rasa shell nlu --debug
2020-09-04 10:31:54 DEBUG    rasa.model  - Extracted the model {- MODEL_NAME } to 'C:\Users\Akhilesh\AppData\Local\Temp\tmpkpg3apm3'.
2020-09-04 10:32:25 INFO     rasa.nlu.components  - Added 'SpacyNLP' to component cache. Key 'SpacyNLP-en'.
2020-09-04 10:32:25 DEBUG    rasa.utils.tensorflow.models  - Loading the model {- MODEL_NAME }...
2020-09-04 10:32:42 DEBUG    rasa.utils.tensorflow.models  - Finished loading the model.
2020-09-04 10:32:42 DEBUG    rasa.utils.tensorflow.models  - Building tensorflow prediction graph...
2020-09-04 10:32:49 DEBUG    rasa.utils.tensorflow.models  - Finished building tensorflow prediction graph.
2020-09-04 10:33:05 INFO     rasa.nlu.components  - Added 'SpacyNLP' to component cache. Key 'SpacyNLP-en_core_web_md'.
NLU model loaded. Type a message and press enter to parse it.
Next message:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
lucasdutrafcommented, Sep 16, 2020

Hey there, @tabergma ! Is someone working on this issue? I’m new to Rasa community and code contribution, so I think this issue could be a nice start for me! Can I work on this?

2reactions
tabergmacommented, Sep 24, 2020

As far as I understood the request of @Akhil-YS the model path should appear in all kind of commands and not only in debug mode but in also if you run, for example, rasa shell without the --debug flag. Regarding the expected output, I would log something like Loading model <relative model path>.... As mentioned above I think you should be able to add a log statement in this line to solve the issue, but needs to be checked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

add-model — AWS CLI 1.27.33 Command Reference
Adds a service JSON model to the appropriate location in ~/.aws/models. Once the model gets added, CLI commands and Boto3 clients will be...
Read more >
Enable Signal Logging for a Model - MATLAB & Simulink
The ModelDataLogs and Dataset formats have different naming rules for unnamed signals. If necessary, add signal names.
Read more >
How to add a custom log with az cli? - Stack Overflow
In the docs, it shows how to create a table, but I see no parameter for setting the collection paths for custom logs...
Read more >
Use the YARN CLI to View Logs for Running Applications
Use the following command format to list all of the container log file names (types) for a running application: yarn logs -applicationId <Application...
Read more >
NetLogo 6.3.0 User Manual: Logging
This name will appear in all the logs generated during this session. ... log only button widget presses, model open events, and widget...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found