diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-02-14 17:52:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-14 17:52:01 -0500 |
commit | 9279ced68660610764931da681f22c8b71bf1b6e (patch) | |
tree | 2a4d015cf57adfe74af72615bad19c9308388e99 /ext/js/settings/dictionary-import-controller.js | |
parent | 286534e648af350d24fbf3c7892a7ec81aaeb4bd (diff) |
Log refactoring (#1393)
* Create Logger class and log instance
* Replace yomichan.logWarning with log.warn
* Replace yomichan.logError with log.error
* Replace yomichan.log with log.log
* Update the Yomichan class to use the global log object
* Update lint rules
Diffstat (limited to 'ext/js/settings/dictionary-import-controller.js')
-rw-r--r-- | ext/js/settings/dictionary-import-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/settings/dictionary-import-controller.js b/ext/js/settings/dictionary-import-controller.js index 00eb7b95..1389b7f0 100644 --- a/ext/js/settings/dictionary-import-controller.js +++ b/ext/js/settings/dictionary-import-controller.js @@ -253,7 +253,7 @@ class DictionaryImportController { _showErrors(errors) { const uniqueErrors = new Map(); for (const error of errors) { - yomichan.logError(error); + log.error(error); const errorString = this._errorToString(error); let count = uniqueErrors.get(errorString); if (typeof count === 'undefined') { |