Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Conversation

forslund
Copy link
Collaborator

@forslund forslund commented Dec 9, 2019

Description

The DEBUG, has been filtered by default. This will disregard the DEBUG
filter completely since the same effect can be achieved by setting the
debug level using ":log level debug".

Should resolve #2420

How to test

Add "DEBUG" to the "filters" list in ~/.mycroft_cli.conf and ensure that setting the log level in the cli using :log level debug will show the debug messages.

Contributor license agreement signed?

CLA [ Yes ]

The DEBUG, has been filtered by default. This will disregard the DEBUG
filter completely since the same effect can be achieved by setting the
debug level using ":log level debug".
@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Dec 9, 2019
@forslund forslund changed the title Disregard DEBUG entry in filter Disregard DEBUG entry in CLI filter Dec 9, 2019
Copy link
Contributor

@KathyReid KathyReid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kathyreid@kathyreid-zenbook-ux533fd:~/mycroft-core$ git pull forslund feature/dont-filter-debug
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Total 6 (delta 5), reused 5 (delta 5), pack-reused 1
Unpacking objects: 100% (6/6), done.
From https://github.com/forslund/mycroft-core
 * branch                  feature/dont-filter-debug -> FETCH_HEAD
 * [new branch]            feature/dont-filter-debug -> forslund/feature/dont-filter-debug
Updating 24071cdea0..2fa81aac52
Fast-forward
 mycroft/client/text/text_client.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kathyreid@kathyreid-zenbook-ux533fd:~/mycroft-core$ git status
On branch dev
Your branch is ahead of 'origin/dev' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean
kathyreid@kathyreid-zenbook-ux533fd:~$ cat ~/.mycroft_cli.conf 
{"filters": ["mouth.viseme", "mouth.display", "mouth.icon", "DEBUG"], "cy_chat_area": 7, "show_last_key": false, "max_log_lines": 5000, "show_meter": true}

Screenshot from 2019-12-09 23-47-57

Working as intended, thanks Ake!

Approving.

@forslund
Copy link
Collaborator Author

forslund commented Dec 9, 2019

Thanks @KathyReid, merging.

@forslund forslund merged commit ca9e7c6 into MycroftAI:dev Dec 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

:log level debug not working from CLI
3 participants