0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added time field to slow get helper logging (#20427)

refs
[CFR-36](https://linear.app/tryghost/issue/CFR-36/pull-out-response-time-from-ghost-logs-message-field-for-get-helper)

Added time field to slow get helper logging to make it easier to query
and filter on this value in elastic without having to parse the message
field
This commit is contained in:
Michael Barrett 2024-06-24 14:28:42 +01:00 committed by GitHub
parent e0057fd30f
commit 897481b3b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -357,7 +357,9 @@ module.exports = async function get(resource, options) {
apiOptions,
returnedRows: returnedRowsCount
}
}));
}), {
time: totalMs
});
}
}
}