Created
September 17, 2021 01:20
-
-
Save justinpage/26c2986bcfd4060c997c45c3318e2107 to your computer and use it in GitHub Desktop.
This file contains 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