couchbaselabs / TouchDB-Android

CouchDB-compatible mobile database; Android version
239 stars 60 forks source link

Tiny patch which removes username and password from the logs #87

Closed cesine closed 11 years ago

cesine commented 11 years ago

The logs log out the entire remote, including the couchdb username and password if any ie: before :

 TDPusher[http://adminuser:supersecretpassswordnotsosecretanymore@yourcouch.iriscouch.com/yourdb] STARTING ...
02-19 23:23:59.010: V/TDDatabase(4135): Making request to http://adminuser:supersecretpassswordnotsosecretanymore@yourcouch.iriscouch.com/yourdb/_changes?feed=longpoll&limit=50&heartbeat=300000&since=1

now:

 02-19 21:34:07.480: V/TDDatabase(2325): TDPusher[http://---:---@yourcouch.iriscouch.com/yourdb] STARTING ...
02-19 23:23:59.010: V/TDDatabase(4135): Making request to http://---:---@yourcouch.iriscouch.com/yourdb/_changes?feed=longpoll&limit=50&heartbeat=300000&since=1