Created
September 17, 2021 01:19
-
-
Save justinpage/2e83bd6c1560300c4d556a2bc656698a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const logger = require('pino')({ | |
| timestamp: () => `,"time":"${new Date().toISOString()}"` | |
| }) | |
| const LIMIT = 5 | |
| let c = {uuid: '6d20a81a-28f9-4fb7-8ee8-2f742bc6d9a2'} | |
| let e = {msg: `Timeout: failed to get response in ${LIMIT} seconds`} | |
| logger.error({cxt: c, err: e}, 'getImages: Failed to get images from API') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment