Skip to content

Commit 2204b77

Browse files
committed
finish migration
1 parent eb08f70 commit 2204b77

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

packages/core/src/codewhisperer/util/zipUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class ZipUtil {
259259
language: this._language,
260260
}
261261
} catch (error) {
262-
getLogger().error('Zip error caused by:', error)
262+
getLogger().error('Zip error caused by: %O', error)
263263
throw error
264264
}
265265
}

packages/core/src/lambda/commands/deploySamApplication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function outputDeployError(error: Error) {
314314
getLogger().error(error)
315315

316316
globals.outputChannel.show(true)
317-
getLogger().error('AWS.samcli.deploy.general.error', 'Error deploying a SAM Application. {0}', checklogs())
317+
getLogger().error('AWS.samcli.deploy.general.error: Error deploying a SAM Application. %O', checklogs())
318318
}
319319

320320
function getDefaultWindowFunctions(): WindowFunctions {

packages/core/src/lambda/vue/remoteInvoke/invokeLambda.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class RemoteInvokeWebview extends VueWebview {
107107
selectedFile: fileLocations[0].path,
108108
}
109109
} catch (e) {
110-
getLogger().error('readFileSync: Failed to read file at path %O', fileLocations[0].fsPath, e)
110+
getLogger().error('readFileSync: Failed to read file at path %s \n %O', fileLocations[0].fsPath, e)
111111
void vscode.window.showErrorMessage((e as Error).message)
112112
}
113113
}

packages/core/src/lambda/wizards/samDeployWizard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ async function populateS3QuickPick(
992992
})
993993
}
994994
} catch (e) {
995-
getLogger().error('Recent bucket JSON not parseable.', e)
995+
getLogger().error('Recent bucket JSON not parseable: %O', e)
996996
}
997997

998998
if (isCloud9() && recent !== cloud9Bucket) {

packages/core/src/login/webview/vue/toolkit/backend_toolkit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class ToolkitLoginWebview extends CommonAuthWebview {
9696
await setContext('aws.explorer.showAuthView', false)
9797
await this.showResourceExplorer()
9898
} catch (e) {
99-
getLogger().error('Failed submitting credentials', e)
99+
getLogger().error('Failed submitting credentials %O', e)
100100
return { id: this.id, text: e as string }
101101
}
102102
}

packages/core/src/shared/filesystemUtilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export async function setDefaultDownloadPath(downloadPath: string) {
245245
await globals.globalState.update('aws.downloadPath', path.dirname(downloadPath))
246246
}
247247
} catch (err) {
248-
getLogger().error('Error while setting "aws.downloadPath"', err as Error)
248+
getLogger().error('Error while setting "aws.downloadPath" \n %O', err as Error)
249249
}
250250
}
251251

packages/core/src/shared/sam/cli/samCliLocalInvoke.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class DefaultSamLocalInvokeCommand implements SamLocalInvokeCommand {
6262
const childProcess = new ChildProcess(params.command, params.args, {
6363
spawnOptions: await addTelemetryEnvVar(options),
6464
})
65-
getLogger().info('AWS.running.command', 'Command: {0}', `${childProcess}`)
65+
getLogger().info('AWS.running.command: Command: %O', `${childProcess}`)
6666
// "sam local invoke", "sam local start-api", etc.
6767
const samCommandName = `sam ${params.args[0]} ${params.args[1]}`
6868

packages/core/src/shared/ui/picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class IteratingQuickPickController<TResponse> {
310310
// give quickpick item an error message
311311
// we should not blow away the existing items, they should still be viable
312312
const err = e as Error
313-
getLogger().error('Error while loading items for IteratingQuickPickController:', err)
313+
getLogger().error('Error while loading items for IteratingQuickPickController: %O', err)
314314
resolve({
315315
value: [
316316
{

packages/core/src/shared/utilities/zipStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class ZipStream {
135135
while (!finished) {
136136
finished = await new Promise((resolve) => {
137137
setTimeout(() => {
138-
getLogger().verbose('success is', this._numberOfFilesSucceeded, '/', this._numberOfFilesToStream)
138+
getLogger().verbose(`success is ${this._numberOfFilesSucceeded}/${this._numberOfFilesToStream}`)
139139
onProgress?.(Math.floor((100 * this._numberOfFilesSucceeded) / this._numberOfFilesToStream))
140140
resolve(this._numberOfFilesToStream <= this._numberOfFilesSucceeded)
141141
}, 1000)

packages/core/src/ssmDocument/commands/deleteDocument.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function deleteDocument(node: DocumentItemNodeWriteable) {
6060
} catch (err) {
6161
result = 'Failed'
6262
const error = err as Error
63-
logger.error('Error on deleting document: %0', error)
63+
logger.error('Error on deleting document: %O', error)
6464
void showViewLogsMessage(
6565
localize(
6666
'AWS.message.error.ssmDocument.deleteDocument.could_not_delete',

0 commit comments

Comments
 (0)