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

set_globals(verbosity=0) appears dont work to file overwritten on build #122

Open
cristianritter opened this issue Dec 8, 2020 · 2 comments

Comments

@cristianritter
Copy link

Hello guys! I cant remove this warning from my code. I think that can be an issue from this repo. If someone woud like to verify. Thanks.
my code:
tfm = sox.Transformer()
tfm.set_globals(verbosity=0)
tfm.oops()
tfm.build_file(temp_file,temp_out_of_phase)

this code always returns this warning:
output_file: R:\out_of_phase.wav already exists and will be overwritten on build

@rabitt
Copy link
Collaborator

rabitt commented Dec 15, 2020

Hey @cristianritter - its admittedly a bit confusing, but there are logs coming from two different places. tfm.set_globals(verbosity=0) controls the sox command line's verbosity, but the warning you're seeing is controlled by the python library's verbosity, which you can configure with the logging module. Hope this helps!

@cristianritter
Copy link
Author

cristianritter commented Dec 16, 2020 via email

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

No branches or pull requests

2 participants