Skip to content

Commit b311a25

Browse files
committed
Merge branch 'fix-getLog'
2 parents 40c9087 + ae88c21 commit b311a25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ export default class BackgroundGeolocation {
574574
* Fetch the entire contents of log database returned as a String
575575
*/
576576
static getLog(success, failure) {
577+
console.warn('[' + TAG + ' getLog] Deprecated. Use BackgroundGeolocation.logger.getLog');
577578
if (!arguments.length) {
578579
return Logger.getLog();
579580
} else {
@@ -584,6 +585,7 @@ export default class BackgroundGeolocation {
584585
* Destroy all contents of log database
585586
*/
586587
static destroyLog(success, failure) {
588+
console.warn('[' + TAG + ' destroyLog] Deprecated. Use BackgroundGeolocation.logger.destroyLog');
587589
if (!arguments.length) {
588590
return Logger.destroyLog();
589591
} else {
@@ -594,6 +596,7 @@ export default class BackgroundGeolocation {
594596
* Open deafult email client on device to email the contents of log database attached as a compressed file attachement
595597
*/
596598
static emailLog(email, success, failure) {
599+
console.warn('[' + TAG + ' emailLog] Deprecated. Use BackgroundGeolocation.logger.emailLog');
597600
if (typeof(email) != 'string') { throw TAG + "#emailLog requires an email address as 1st argument"}
598601
if (arguments.length == 1) {
599602
return Logger.emailLog(email);

0 commit comments

Comments
 (0)