From ade05bb7a8391993f5cf1c8d520a01eeeba9c841 Mon Sep 17 00:00:00 2001 From: ngosang Date: Fri, 8 Jan 2021 16:01:28 +0100 Subject: [PATCH] Add traces with captcha solver service. resolves #39 --- src/captcha/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/captcha/index.ts b/src/captcha/index.ts index 3f5c855..0c39568 100644 --- a/src/captcha/index.ts +++ b/src/captcha/index.ts @@ -1,3 +1,5 @@ +import log from "../log"; + export enum CaptchaType { re = 'reCaptcha', h = 'hCaptcha' @@ -31,5 +33,7 @@ export default (): Solver => { } } + log.info(`Using '${method} to solve the captcha.`); + return captchaSolvers[method] -} \ No newline at end of file +}