Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit e53ba74

Browse files
committed
update trackjs
1 parent 937b8e4 commit e53ba74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/botPage/view/logger.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ const notifyError = error => {
6767

6868
notify({ className: 'error', message, position: 'right' });
6969

70-
if (trackJs) {
70+
if (trackJs && isProduction()) {
7171
trackJs.console.log(error);
72-
if (isProduction()) {
73-
trackJs.track(code || error.name);
74-
}
72+
trackJs.track(code || error.name);
73+
} else {
74+
console.log(error);
7575
}
7676
};
7777

0 commit comments

Comments
 (0)