chore: add context to captcha-related debug messages in RequestHandler
This commit is contained in:
@@ -366,7 +366,7 @@ class RequestHandler {
|
|||||||
// Retry the request after a captcha is solved
|
// Retry the request after a captcha is solved
|
||||||
this.manager.client.emit(
|
this.manager.client.emit(
|
||||||
DEBUG,
|
DEBUG,
|
||||||
`Hit a captcha while executing a request (${data.captcha_key.join(', ')})
|
`[Request Handler] Hit a captcha while executing a request (${data.captcha_key.join(', ')})
|
||||||
Method : ${request.method}
|
Method : ${request.method}
|
||||||
Path : ${request.path}
|
Path : ${request.path}
|
||||||
Route : ${request.route}
|
Route : ${request.route}
|
||||||
@@ -376,7 +376,7 @@ class RequestHandler {
|
|||||||
const captcha = await this.manager.client.options.captchaSolver(data, request.fullUserAgent);
|
const captcha = await this.manager.client.options.captchaSolver(data, request.fullUserAgent);
|
||||||
this.manager.client.emit(
|
this.manager.client.emit(
|
||||||
DEBUG,
|
DEBUG,
|
||||||
`Captcha details:
|
`[Request Handler] Captcha details:
|
||||||
Method : ${request.method}
|
Method : ${request.method}
|
||||||
Path : ${request.path}
|
Path : ${request.path}
|
||||||
Route : ${request.route}
|
Route : ${request.route}
|
||||||
|
|||||||
Reference in New Issue
Block a user