Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable warnings when overwriting output file #25

Closed
justinsalamon opened this issue Oct 11, 2016 · 1 comment
Closed

Disable warnings when overwriting output file #25

justinsalamon opened this issue Oct 11, 2016 · 1 comment
Assignees

Comments

@justinsalamon
Copy link
Contributor

There are scenarios where you know in advance that you're going to use pysox to overwrite an existing file, e.g. when using temporary files like in this example from #6. In this situation it's inconvenient to have pysox issue a warning for every file overwrite (as there are many), and right now there's no way to disable these warnings in pysox (you can hack it by changing the logging level as in the example provided above, but that's not ideal).

It would be nice to have an optional flag in pysox (or maybe at the transformer/combiner level?) to disable file overwrite warnings (and maybe another option to disable all warnings from pysox?).

@rabitt
Copy link
Collaborator

rabitt commented Nov 15, 2017

@justinsalamon this is fixed as of version 1.3.2 . See #51

The default logging level is now WARNING which will still show the overwrite warnings. You can change this in your environment by calling, for example:

logging.getLogger('sox').setLevel(logging.ERROR)

@rabitt rabitt closed this as completed Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants