How to disable database logcat output

43 views
Skip to first unread message

Jakub Czaplicki

unread,
Apr 3, 2014, 11:52:28 AM4/3/14
to mobile-c...@googlegroups.com

I was just about to release my application when I noticed that my couchdb database API key is shown in logcat.

It is shown when database.createPullReplication(syncUrl)start() is called.

How can I disable com.couchbase.lite.Database logcat output ?

Code:

public static final String DATABASE_NAME = "xxx";
public static final String SYNC_URL = "https://abcdefghijklmnopqrstuvwxyz:zyxwvutsrqpon...@xxx.com/xxx";
//..
manager
= new Manager(getApplicationContext().getFilesDir(), Manager.DEFAULT_OPTIONS);
//..
database
= manager.getDatabase(DATABASE_NAME);
//..
syncUrl
= new URL(SYNC_URL);
//..
pullReplication = database.createPullReplication(syncUrl);
pullReplication
.setContinuous(true);
pullReplication
.start();


        
logcat:
04-03 16:17:55.946: V/Database(5040): url.getUserInfo(): abcdefghijklmnopqrstuvwxyz:zyxwvutsrqponmlkjihgfedcba
04-03 16:17:55.946: V/Database(5040): Making request to https://---:---@xxx.com/xxx  (...)

Thanks

Traun Leyden

unread,
Apr 3, 2014, 5:43:39 PM4/3/14
to mobile-c...@googlegroups.com
Thanks for reporting this.

I opened an issue to track it:



--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/8de16669-9225-4369-8716-641ce864cd80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages