forked from mirrors/probot
refactor: user response.headers instead of deprecated response.meta (#550)
This commit is contained in:
parent
5f4340f504
commit
70f4a041f6
|
@ -38,7 +38,7 @@ export interface RequestOptions {
|
|||
}
|
||||
|
||||
export interface Result {
|
||||
meta: {
|
||||
headers: {
|
||||
status: string
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ export function addLogging (client: GitHubAPI, logger: Logger) {
|
|||
})
|
||||
client.hook.after('request', (result, options) => {
|
||||
const {method, url, headers, ...params} = options
|
||||
const msg = `GitHub request: ${method} ${url} - ${result.meta.status}`
|
||||
const msg = `GitHub request: ${method} ${url} - ${result.headers.status}`
|
||||
logger.debug({params}, msg)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue