Cordova polluted logs with persistent.js add()

Posted by slaver113 on Stack Overflow See other posts from Stack Overflow or by slaver113
Published on 2012-10-29T10:37:02Z Indexed on 2012/10/29 17:01 UTC
Read the original article Hit count: 188

Filed under:
|

I am using the latest phonegap/cordova version 2.1. and my log in Eclipse logcat get polluted with code when i do var allItems = Item.all();

allItems.list(null, function (results) {
    results.forEach(function (r) {
        console.log(r.id+ " " + r.lat + " " + r.long + " " + r.state);
    });
});

I get a output like (for 100s of lines)

10-29 10:56:13.270: I/Web Console(5961):     } function (value) {
10-29 10:56:13.270: I/Web Console(5961):         if (value === undefined) {
10-29 10:56:13.270: I/Web Console(5961):             return getterCallback();
10-29 10:56:13.270: I/Web Console(5961):         } else {
10-29 10:56:13.270: I/Web Console(5961):             setterCallback(value);
10-29 10:56:13.270: I/Web Console(5961):             return scope;
10-29 10:56:13.270: I/Web Console(5961):         }
10-29 10:56:13.270: I/Web Console(5961):     } function (value) {
10-29 10:56:13.270: I/Web Console(5961):         if (value === undefined) {
10-29 10:56:13.270: I/Web Console(5961):             return getterCallback();
10-29 10:56:13.270: I/Web Console(5961):         } else {
10-29 10:56:13.270: I/Web Console(5961):             setterCallback(value);
10-29 10:56:13.270: I/Web Console(5961):             return scope;
10-29 10:56:13.270: I/Web Console(5961):         }
10-29 10:56:13.270: I/Web Console(5961):     } function (value) {
10-29 10:56:13.270: I/Web Console(5961):         if (value === undefined) {
10-29 10:56:13.270: I/Web Console(5961):             return getterCallback();
10-29 10:56:13.270: I/Web Console(5961):         } else {
10-29 10:56:13.270: I/Web Console(5961):             setterCallback(value);
10-29 10:56:13.270: I/Web Console(5961):             return scope;
10-29 10:56:13.270: I/Web Console(5961):         }
10-29 10:56:13.270: I/Web Console(5961):     } at :1149822901       

© Stack Overflow or respective owner

Related posts about phonegap

Related posts about logging