Cordova polluted logs with persistent.js add()
- by slaver113
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