Skip to content

Commit

Permalink
Add warning with page ts fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Mar 22, 2024
1 parent 6acf92e commit 8fa4d34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/util/worker.ts
Expand Up @@ -307,6 +307,11 @@ export class PageWorker {
}

if (!opts.data.ts) {
logger.warn(
"Page timestamp not found in WARCs, falling back to current time",
{ ...this.logDetails },
"recorder",
);
opts.data.ts = new Date();
}

Expand Down

0 comments on commit 8fa4d34

Please sign in to comment.