From b77a35e0e9e908c58de451b7c5301fa2b838a299 Mon Sep 17 00:00:00 2001 From: Godzil Date: Wed, 31 Jul 2019 17:16:30 +0200 Subject: [PATCH] Remove non production logs --- src/my_request.ts | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/my_request.ts b/src/my_request.ts index 0b93abd..39dbe9d 100644 --- a/src/my_request.ts +++ b/src/my_request.ts @@ -368,11 +368,6 @@ function authenticate(config: IConfig, done: (err: Error) => void) { if (err) return done(err); - console.log('------- GET --------'); - // console.error(err); - console.log(body); - console.log('------- /GET --------'); - const $ = cheerio.load(body); /* Get the token from the login page */ @@ -381,7 +376,7 @@ function authenticate(config: IConfig, done: (err: Error) => void) { return done(AuthError('Can\'t find token!')); } - console.log('Token: ' + token); + /* Now call the page again with the token and credentials */ const options = { @@ -396,18 +391,10 @@ function authenticate(config: IConfig, done: (err: Error) => void) url: 'https://www.crunchyroll.com/login' }; - console.info(options); - cloudscraper.post(options, (err: Error, rep: string, body: string) => { - console.log('------- POST --------'); - // console.error(err); - console.log(body); - console.log('------- /POST --------'); - if (err) { - console.log('------- ERR --------'); return done(err); } @@ -416,16 +403,10 @@ function authenticate(config: IConfig, done: (err: Error) => void) { if (isAuthenticated) { - console.log('------- YES --------'); - return done(null); } else { - - console.error(err); - console.log('------- WTF --------'); - return done(errCheckAuth2); } });