cdown/srt

can you add make_legal_content(content) a silent mode?

Closed this issue · 2 comments

for srt.make_legal_content(content)
Could you please make this function run in silent mode? or give a switch?
It returns everything of content.

and, remove
something like this?

cdown commented

make_legal_content just uses the normal logging library, so you can use the normal logging APIs for that:

In [13]: logging.getLogger("srt").setLevel(logging.ERROR)                                                                                                                                                          

In [14]: srt.make_legal_content("test\n\n\n")                                                                                                                                                                      
Out[14]: 'test'

(notice, no logging output.)

If that doesn't answer your question, please let me know. Thanks!

cdown commented

Thinking about this more, these should also be loglevel info. I've just done that here: 543a70a