Skip to content
This repository has been archived by the owner on Jun 18, 2018. It is now read-only.

Toggle verbosity #1

Closed
patapizza opened this issue Oct 2, 2014 · 2 comments
Closed

Toggle verbosity #1

patapizza opened this issue Oct 2, 2014 · 2 comments

Comments

@patapizza
Copy link
Contributor

Currently a lot of messages are printing out:

[mic] initialized sox: 14.4.1
[wit] init
[wit] initialized with device: default
...
[wit] read. state=idle
[wit] received response: {"_text":"..."}
...
[wit] trying to stop but no request started
[wit] ready. state=idle

Although this can be proved helpful while debugging, once it's up and running one would like to get it 'just working', i.e. silently.
So I'm thinking of three verbosity levels:

  • All (current setting)
  • Warnings (just errors/warnings, no [wit] init, [mic] initialized sox: 14.4.1, etc. messages)
  • Silent (no output at all)
@martinraison
Copy link
Contributor

I've been thinking the same - let's do it

@martinraison
Copy link
Contributor

0bf1435 adds a verbosity argument to wit_init:

struct wit_context *wit_init(const char *device_opt, unsigned int verbosity);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants