diff --git a/src/MediaWiki.ts b/src/MediaWiki.ts index 013a32ea..f61fbeea 100644 --- a/src/MediaWiki.ts +++ b/src/MediaWiki.ts @@ -176,6 +176,7 @@ class MediaWiki { if (this.#hasWikimediaDesktopApi === null) { this.wikimediaDesktopUrlDirector = new WikimediaDesktopURLDirector(this.wikimediaDesktopApiUrl.href) this.#hasWikimediaDesktopApi = await checkApiAvailability(this.wikimediaDesktopUrlDirector.buildArticleURL(this.apiCheckArticleId)) + logger.log('Checking for WikimediaDesktopApi at', this.wikimediaDesktopUrlDirector.buildArticleURL(this.apiCheckArticleId), '-- result is: ', this.#hasWikimediaDesktopApi) return this.#hasWikimediaDesktopApi } return this.#hasWikimediaDesktopApi @@ -185,6 +186,7 @@ class MediaWiki { if (this.#hasWikimediaMobileApi === null) { this.wikimediaMobileUrlDirector = new WikimediaMobileURLDirector(this.wikimediaMobileApiUrl.href) this.#hasWikimediaMobileApi = await checkApiAvailability(this.wikimediaMobileUrlDirector.buildArticleURL(this.apiCheckArticleId)) + logger.log('Checking for WikimediaMobileApi at', this.wikimediaMobileUrlDirector.buildArticleURL(this.apiCheckArticleId), '-- result is: ', this.#hasWikimediaMobileApi) return this.#hasWikimediaMobileApi } return this.#hasWikimediaMobileApi @@ -198,6 +200,7 @@ class MediaWiki { '' /* empty login cookie */, this.visualEditorUrlDirector.validMimeTypes, ) + logger.log('Checking for VisualEditorApi at', this.visualEditorUrlDirector.buildArticleURL(this.apiCheckArticleId), '-- result is: ', this.#hasVisualEditorApi) return this.#hasVisualEditorApi } return this.#hasVisualEditorApi @@ -207,6 +210,7 @@ class MediaWiki { if (this.#hasRestApi === null) { this.restApiUrlDirector = new RestApiURLDirector(this.restApiUrl.href) this.#hasRestApi = await checkApiAvailability(this.restApiUrlDirector.buildArticleURL(this.apiCheckArticleId)) + logger.log('Checking for RestApi at', this.restApiUrlDirector.buildArticleURL(this.apiCheckArticleId), '-- result is: ', this.#hasRestApi) return this.#hasRestApi } return this.#hasRestApi