From 461dd79bc2676716a96e3a8d860e17b7511e2f04 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Tue, 28 Jan 2020 13:05:31 -0800 Subject: [PATCH] Only log if an actual error occurred (#8979) --- .../azurecore/src/account-provider/azureAccountProvider2.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/azurecore/src/account-provider/azureAccountProvider2.ts b/extensions/azurecore/src/account-provider/azureAccountProvider2.ts index 641aac565a..6081ebc879 100644 --- a/extensions/azurecore/src/account-provider/azureAccountProvider2.ts +++ b/extensions/azurecore/src/account-provider/azureAccountProvider2.ts @@ -78,7 +78,9 @@ export class AzureAccountProvider implements azdata.AccountProvider { response = response as TokenResponse; context.cache.add([response], (err, result) => { - console.log(err, result); + if (err || !result) { + console.log(`Unexpected error adding token to cache ${err}`); + } }); return response;