Skip to content

Commit b64c66c

Browse files
committed
Remove debugging code
1 parent 871bf0f commit b64c66c

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/api/instagram.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import axios from "axios";
21
import AwaitLock from "await-lock";
32
import chalk from "chalk";
43
import {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

Comments
 (0)