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

How to suppress log warnings? #54

Closed
ceteri opened this issue Dec 11, 2019 · 3 comments
Closed

How to suppress log warnings? #54

ceteri opened this issue Dec 11, 2019 · 3 comments

Comments

@ceteri
Copy link

ceteri commented Dec 11, 2019

When using this library to access Dimensions API, every call outputs:

DimCli v0.6.1.2 - Succesfully connected to <https://app.dimensions.ai> (method: manual login)

Is there any config setting to suppress those?

It's quite annoying, not an especially "pythonic" practice, and makes integration with production code more difficult to manage than it needs to be.

Many thanks -

@lambdamusic
Copy link
Member

That's a good point / we'll add a verbose=False option to the login method in next release so that you can suppress that.

PS it was originally developed thinking of jupyter notebooks settings where users can benefit from a visual feedback..

@lambdamusic
Copy link
Member

That's now in dimcli v0.6.2 - just do login(verbose=False)
See https://github.com/digital-science/dimcli/blob/master/dimcli/__init__.py#L31

@ceteri
Copy link
Author

ceteri commented Dec 18, 2019

Thank you so much @lambdamusic !

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