Skip to content

Commit 80ce8ef

Browse files
committed
directive: quiet debug
Remove extra print statement and change info() to debug().
1 parent 489dce0 commit 80ce8ef

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

docs/source/history.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
macOS
1010
unmaintained
1111

12+
Next
13+
====
14+
15+
Bug Fixes
16+
---------
17+
18+
- `#193 <https://github.com/sphinx-contrib/spelling/issues/193>`__
19+
Remove excessive debug printing in `:spelling:word:` implementation.
20+
1221
7.6.1
1322
=====
1423

sphinxcontrib/spelling/directive.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ def add_good_words_to_document(env, docname, good_words):
1616
# Initialize the per-document good words list
1717
if not hasattr(env, 'spelling_document_words'):
1818
env.spelling_document_words = collections.defaultdict(list)
19-
logger.info('Extending local dictionary for %s with %s',
20-
env.docname, good_words)
21-
print(env.docname, good_words)
19+
logger.debug('Extending local dictionary for %s with %s',
20+
env.docname, good_words)
2221
env.spelling_document_words[env.docname].extend(good_words)
2322

2423

0 commit comments

Comments
 (0)