diff --git a/index.js b/index.js index 7c641d025..680004cd8 100644 --- a/index.js +++ b/index.js @@ -9,6 +9,7 @@ if (process.env.APPLICATIONINSIGHTS_CONNECTION_STRING) { appInsights.setup() .setAutoCollectRequests(true) .setAutoCollectPerformance(true) + .setAutoCollectConsole(true, true) .setAutoCollectExceptions(true) .setAutoCollectDependencies(false) .setAutoDependencyCorrelation(true) diff --git a/packages/cms/lib/modules/openstad-global/index.js b/packages/cms/lib/modules/openstad-global/index.js index a39d458d9..1db07877c 100644 --- a/packages/cms/lib/modules/openstad-global/index.js +++ b/packages/cms/lib/modules/openstad-global/index.js @@ -29,7 +29,6 @@ async function getSupportedLanguages(deeplAuthKey) { supportedLanguages = cache.get(cacheKeyForLanguages); } else if (deeplAuthKey) { - console.log({deeplAuthKey}) try { const translator = new deepl.Translator(deeplAuthKey, translatorConfig); await translator.getTargetLanguages().then(response => { @@ -69,7 +68,6 @@ async function getSupportedLanguages(deeplAuthKey) { } else { console.error({translationError: "Could not fetch languages for the translation widget: Key not set"}); } - console.log("deeplAuthKey") return supportedLanguages; }