Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
mairatma committed Oct 25, 2023
1 parent dff7b51 commit b519801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpClient/middlewares/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const cacheMiddleware = ({ type, storage }: CacheOptions) => {
[HttpCacheLogFields.RESPONSE_TYPE]: responseType,
})
} catch (error) {
ErrorReport.create({ originalError: error }).injectOnSpan(cacheReadSpan)
ErrorReport.create({ originalError: error }).injectOnSpan(cacheWriteSpan)
logger?.warn({ message: 'Error writing to the HttpClient cache', error })
} finally {
cacheWriteSpan?.finish()
Expand Down

0 comments on commit b519801

Please sign in to comment.