Add model name to the logs in CLI
See original GitHub issueDescription 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:
- Created 3 years ago
- Comments:12 (9 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
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 likeLoading 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.