handout icon indicating copy to clipboard operation
handout copied to clipboard

Reduce amount of logging messages

Open danijar opened this issue 6 years ago • 2 comments

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

danijar avatar Aug 02 '19 23:08 danijar

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 avatar Aug 03 '19 21:08 danijar

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 avatar Aug 05 '19 23:08 danijar