mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-26 18:58:21 +02:00
Log info
This commit is contained in:
parent
6ad9931e43
commit
b77f868fc8
@ -37,6 +37,7 @@ export default class SpellCheckerServiceDriverNative extends SpellCheckerService
|
|||||||
for (const toTry of languagesToTry) {
|
for (const toTry of languagesToTry) {
|
||||||
try {
|
try {
|
||||||
this.session().setSpellCheckerLanguages([toTry]);
|
this.session().setSpellCheckerLanguages([toTry]);
|
||||||
|
logger.info(`Set effective language from "${v}" to "${toTry}"`);
|
||||||
return;
|
return;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.warn(`Failed to set language to "${toTry}". Will try the next one in this list: ${JSON.stringify(languagesToTry)}`);
|
logger.warn(`Failed to set language to "${toTry}". Will try the next one in this list: ${JSON.stringify(languagesToTry)}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user