Skip to content

Commit

Permalink
fix: include id in write back message
Browse files Browse the repository at this point in the history
  • Loading branch information
dominique-pfister committed Jul 12, 2024
1 parent 8142251 commit 27c1fc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/helix-shared-tokencache/src/S3CachePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ export class S3CachePlugin {
ContentType: secret ? 'application/octet-stream' : 'text/plain',
}));
this.lastModified = new Date();
log.info(`s3: write token cache: ${lastModified?.toISOString() ?? 'never'} => ${this.lastModified.toISOString()}`);

const id = key.split('/')[0];
const before = lastModified?.toISOString() ?? 'never';
const now = this.lastModified.toISOString();
log.info(`s3: write token cache [${id}]: ${before} => ${now}`);
return true;
} catch (e) {
log.warn('s3: unable to serialize token cache', e);
Expand Down

0 comments on commit 27c1fc1

Please sign in to comment.