Skip to content

Commit e864ac4

Browse files
committed
log errors as warnings
1 parent ee73cf9 commit e864ac4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Example/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class Example extends Component {
4848
() => console.log('rewardedVideoDidLoad')
4949
);
5050
AdMobRewarded.addEventListener('rewardedVideoDidFailToLoad',
51-
(error) => console.log('rewardedVideoDidFailToLoad', error)
51+
(error) => console.warn(error)
5252
);
5353
AdMobRewarded.addEventListener('rewardedVideoDidOpen',
5454
() => console.log('rewardedVideoDidOpen')
@@ -59,14 +59,14 @@ export default class Example extends Component {
5959
AdMobRewarded.addEventListener('rewardedVideoDidClose',
6060
() => {
6161
console.log('rewardedVideoDidClose');
62-
AdMobRewarded.requestAd().catch(error => console.log(error));
62+
AdMobRewarded.requestAd().catch(error => console.warn(error));
6363
}
6464
);
6565
AdMobRewarded.addEventListener('rewardedVideoWillLeaveApplication',
6666
() => console.log('rewardedVideoWillLeaveApplication')
6767
);
6868

69-
AdMobRewarded.requestAd().catch(error => console.log(error));
69+
AdMobRewarded.requestAd().catch(error => console.warn(error));
7070

7171
AdMobInterstitial.setTestDevices([AdMobInterstitial.simulatorId]);
7272
AdMobInterstitial.setAdUnitID('ca-app-pub-3940256099942544/4411468910');
@@ -75,22 +75,22 @@ export default class Example extends Component {
7575
() => console.log('interstitialDidLoad')
7676
);
7777
AdMobInterstitial.addEventListener('interstitialDidFailToLoad',
78-
(error) => console.log('interstitialDidFailToLoad', error)
78+
(error) => console.warn(error)
7979
);
8080
AdMobInterstitial.addEventListener('interstitialDidOpen',
8181
() => console.log('interstitialDidOpen')
8282
);
8383
AdMobInterstitial.addEventListener('interstitialDidClose',
8484
() => {
8585
console.log('interstitialDidClose');
86-
AdMobInterstitial.requestAd().catch(error => console.log(error));
86+
AdMobInterstitial.requestAd().catch(error => console.warn(error));
8787
}
8888
);
8989
AdMobInterstitial.addEventListener('interstitialWillLeaveApplication',
9090
() => console.log('interstitialWillLeaveApplication')
9191
);
9292

93-
AdMobInterstitial.requestAd().catch(error => console.log(error));
93+
AdMobInterstitial.requestAd().catch(error => console.warn(error));
9494
}
9595

9696
componentWillUnmount() {
@@ -99,11 +99,11 @@ export default class Example extends Component {
9999
}
100100

101101
showRewarded() {
102-
AdMobRewarded.showAd().catch(error => console.log(error));
102+
AdMobRewarded.showAd().catch(error => console.warn(error));
103103
}
104104

105105
showInterstitial() {
106-
AdMobInterstitial.showAd().catch(error => console.log(error));
106+
AdMobInterstitial.showAd().catch(error => console.warn(error));
107107
}
108108

109109
render() {

0 commit comments

Comments
 (0)