Skip to content

Commit 40c9087

Browse files
committed
Merge branch 'fix-getLog'
2 parents 568acff + 96ad14b commit 40c9087

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,19 +575,19 @@ export default class BackgroundGeolocation {
575575
*/
576576
static getLog(success, failure) {
577577
if (!arguments.length) {
578-
return NativeModule.getLog();
578+
return Logger.getLog();
579579
} else {
580-
NativeModule.getLog().then(success).catch(failure);
580+
Logger.getLog().then(success).catch(failure);
581581
}
582582
}
583583
/**
584584
* Destroy all contents of log database
585585
*/
586586
static destroyLog(success, failure) {
587587
if (!arguments.length) {
588-
return NativeModule.destroyLog();
588+
return Logger.destroyLog();
589589
} else {
590-
NativeModule.destroyLog().then(success).catch(failure);
590+
Logger.destroyLog().then(success).catch(failure);
591591
}
592592
}
593593
/**
@@ -596,9 +596,9 @@ export default class BackgroundGeolocation {
596596
static emailLog(email, success, failure) {
597597
if (typeof(email) != 'string') { throw TAG + "#emailLog requires an email address as 1st argument"}
598598
if (arguments.length == 1) {
599-
return NativeModule.emailLog(email);
599+
return Logger.emailLog(email);
600600
} else {
601-
NativeModule.emailLog(email).then(success).catch(failure);
601+
Logger.emailLog(email).then(success).catch(failure);
602602
}
603603
}
604604
/**

0 commit comments

Comments
 (0)