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

Reduce amount of logging messages #2

Open
danijar opened this issue Aug 2, 2019 · 2 comments
Open

Reduce amount of logging messages #2

danijar opened this issue Aug 2, 2019 · 2 comments

Comments

@danijar
Copy link
Owner

danijar commented Aug 2, 2019

Instead of writing a message every time saved, there should be one message in the beginning that states the location of the handout.

@danijar
Copy link
Owner Author

danijar commented Aug 3, 2019

This is actually useful, e.g. because text messages should show up in the terminal. But it's easy to disable with

import handout
import logging
logging.getLogger('handout').setLevel(logging.ERROR)

@danijar
Copy link
Owner Author

danijar commented Aug 5, 2019

As discussed in #11, doc.add_text() should always print so you can use it to replace print() where needed. Besides this, the path to the index.html could be printed once in the beginning to make it easy to open the handout in the browser. All other messages will be hidden by default (e.g. log level info).

@danijar danijar reopened this Aug 5, 2019
@danijar danijar added this to the v1.1.0 milestone Aug 5, 2019
@danijar danijar removed this from the v1.1.0 milestone Aug 15, 2019
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

1 participant