1- import axios from "axios" ;
21import AwaitLock from "await-lock" ;
32import chalk from "chalk" ;
43import { isLeft } from "fp-ts/lib/Either" ;
@@ -580,15 +579,6 @@ export class Instagram<PostType> {
580579 ) ;
581580 }
582581
583- const areq = await axios ( {
584- url : this . postURL + post + "/" ,
585- method : "GET" ,
586- responseType : "text" ,
587- } ) ;
588-
589- // tslint:disable:no-console
590- console . log ( areq . data ) ;
591-
592582 // Load data from memory
593583 let data ;
594584 try {
@@ -607,8 +597,6 @@ export class Instagram<PostType> {
607597
608598 return JSON . stringify ( window [ "_sharedData" ] . entry_data ) ;
609599 } ) ;
610- // tslint:disable:no-console
611- console . log ( data ) ;
612600 } catch ( error ) {
613601 await this . handlePostPageError (
614602 postPage ,
@@ -650,8 +638,6 @@ export class Instagram<PostType> {
650638 retries : number ,
651639 ) {
652640 // Log error and wait
653- // tslint:disable:no-console
654- console . log ( error ) ;
655641 this . logger . error ( message , { error} ) ;
656642 await this . progress ( Progress . ABORTED ) ;
657643 await this . sleep ( 2 ) ;
@@ -867,11 +853,8 @@ export class Instagram<PostType> {
867853 setInterval ( ( ) => {
868854 try {
869855 document . body . style . overflow = "" ;
870- } catch ( e ) {
871- // tslint:disable-next-line:no-console
872- console . log ( "Failed to update style" ) ;
873- // tslint:disable-next-line:no-console
874- console . error ( e . message ) ;
856+ } catch ( error ) {
857+ this . logger . error ( "Failed to update style" , { error} ) ;
875858 }
876859 } , 10000 ) ;
877860 } ) ;
0 commit comments