Skip to content

Commit

Permalink
Slightly modify log message
Browse files Browse the repository at this point in the history
  • Loading branch information
aquarat committed Dec 14, 2023
1 parent 263cea0 commit 078d64d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/handlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe(batchInsertData.name, () => {
statusCode: 201,
});
expect(logger.debug).toHaveBeenCalledWith(
'Not storing signed data because the signed data is not newer than the db sample.',
'Not storing signed data because the signed data is not newer than what we already have.',
expect.any(Object)
);
expect(cacheModule.getCache()[storedSignedData.airnode]![storedSignedData.templateId]!).toHaveLength(1);
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const batchInsertData = async (requestBody: unknown): Promise<ApiResponse
const goReadDb = await go(async () => get(signedData.airnode, signedData.templateId, requestTimestamp));

if (goReadDb.data && requestTimestamp <= Number.parseInt(goReadDb.data.timestamp, 10)) {
logger.debug('Not storing signed data because the signed data is not newer than the db sample.', {
logger.debug('Not storing signed data because the signed data is not newer than what we already have.', {
signedData,
});
continue;
Expand Down

0 comments on commit 078d64d

Please sign in to comment.