Skip to content

Commit

Permalink
directive: quiet debug
Browse files Browse the repository at this point in the history
Remove extra print statement and change info() to debug().
  • Loading branch information
dhellmann committed Oct 16, 2022
1 parent 489dce0 commit 80ce8ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/source/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
macOS
unmaintained

Next
====

Bug Fixes
---------

- `#193 <https://github.com/sphinx-contrib/spelling/issues/193>`__
Remove excessive debug printing in `:spelling:word:` implementation.

7.6.1
=====

Expand Down
5 changes: 2 additions & 3 deletions sphinxcontrib/spelling/directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ def add_good_words_to_document(env, docname, good_words):
# Initialize the per-document good words list
if not hasattr(env, 'spelling_document_words'):
env.spelling_document_words = collections.defaultdict(list)
logger.info('Extending local dictionary for %s with %s',
env.docname, good_words)
print(env.docname, good_words)
logger.debug('Extending local dictionary for %s with %s',
env.docname, good_words)
env.spelling_document_words[env.docname].extend(good_words)


Expand Down

0 comments on commit 80ce8ef

Please sign in to comment.