Skip to content

Commit 39aede2

Browse files
committed
chore: don't log ftp password
1 parent c7f32d3 commit 39aede2

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • shared/packages/worker/src/worker/accessorHandlers

shared/packages/worker/src/worker/accessorHandlers/ftp.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,14 @@ export class FTPAccessorHandle<Metadata> extends GenericAccessorHandle<Metadata>
497497

498498
this.worker.logger.error(
499499
`Something is wrong with the FTP client cacheKey. The options do not match the cacheKey. Deleting cached clients for this key. cacheKey: ${cacheKey}, options: ${JSON.stringify(
500-
options
501-
)}, cachedOptions: ${JSON.stringify(cachedClients.options)}`
500+
{
501+
options,
502+
password: '***',
503+
}
504+
)}, cachedOptions: ${JSON.stringify({
505+
...cachedClients.options,
506+
password: '***',
507+
})}`
502508
)
503509

504510
for (const c of cachedClients.clients) {

0 commit comments

Comments
 (0)