Skip to content

Commit

Permalink
Bug 1698786: part 4) Add some logging to EditorSpellChecker. r=masa…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodesser committed Mar 18, 2021
1 parent 0169591 commit 814b998
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editor/spellchecker/EditorSpellCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "mozilla/intl/LocaleService.h" // for retrieving app locale
#include "mozilla/intl/MozLocale.h" // for mozilla::intl::Locale
#include "mozilla/intl/OSPreferences.h" // for mozilla::intl::OSPreferences
#include "mozilla/Logging.h" // for mozilla::LazyLogModule
#include "mozilla/mozalloc.h" // for operator delete, etc
#include "mozilla/mozSpellChecker.h" // for mozSpellChecker
#include "mozilla/Preferences.h" // for Preferences
Expand Down Expand Up @@ -50,6 +51,8 @@ using namespace dom;
using intl::LocaleService;
using intl::OSPreferences;

static mozilla::LazyLogModule sEditorSpellChecker("EditorSpellChecker");

class UpdateDictionaryHolder {
private:
EditorSpellCheck* mSpellCheck;
Expand Down Expand Up @@ -410,6 +413,8 @@ EditorSpellCheck::InitSpellChecker(nsIEditor* aEditor,

NS_IMETHODIMP
EditorSpellCheck::GetNextMisspelledWord(nsAString& aNextMisspelledWord) {
MOZ_LOG(sEditorSpellChecker, LogLevel::Debug, ("%s", __FUNCTION__));

NS_ENSURE_TRUE(mSpellChecker, NS_ERROR_NOT_INITIALIZED);

DeleteSuggestedWordList();
Expand Down

0 comments on commit 814b998

Please sign in to comment.