From 08872e3135ec896d55677ced8c0c13325952b8c1 Mon Sep 17 00:00:00 2001 From: Zsolt Kovari Date: Mon, 30 Sep 2024 09:32:22 +0200 Subject: [PATCH] Log langtool version when it's set up --- src/main/python/plotlyst/service/grammar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/python/plotlyst/service/grammar.py b/src/main/python/plotlyst/service/grammar.py index e12c4ae72..daba54816 100644 --- a/src/main/python/plotlyst/service/grammar.py +++ b/src/main/python/plotlyst/service/grammar.py @@ -23,6 +23,7 @@ import language_tool_python from PyQt6.QtCore import QRunnable from language_tool_python import LanguageTool +from language_tool_python.download_lt import LATEST_VERSION from overrides import overrides from plotlyst.core.domain import Novel, Event, Location @@ -56,6 +57,7 @@ def __init__(self): def set(self, language_tool: LanguageTool): self._language_tool = language_tool self._error = None + logging.info(f'Grammar checker was set up with version {LATEST_VERSION}.') emit_info('Grammar checker was set up.') emit_global_event(LanguageToolSet(self, self._language_tool))