lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Configure log file and debugging output in python view server (patch included) #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Adds --debug option to dump out commands/responses, --log-file to send
local debug and error messages to a file.  Uses logging package.  

Found this useful when writing python views, thought I'd toss it back. 

Original issue reported on code.google.com by melk...@gmail.com on 9 Feb 2009 at 4:42

Attachments:

GoogleCodeExporter commented 8 years ago
I don't think this is the best way to handle this problem.
I like the --debug option to enable extra logging, however CouchDB has built in
functionality for view servers to send data to its logs. Additionally, 
redirecting
standard error for the couchdb process (either from the startup script or 
command
line) will cause view servers to redirect output as well.

The argument for using the log module over just printing the json log command to
couch would be that perhaps log.debug is implemented in native code in the 
python
interpreter and would experience less overhead in the case of disabled 
debugging over
an if statement. I may profile this or I may just use log. Should be quick fix.

Original comment by randall....@gmail.com on 28 Feb 2009 at 4:54

GoogleCodeExporter commented 8 years ago
I like this patch, makes it much easier to track down errors in the view 
server, view function code, or even 
CouchDB itself!

Original comment by cmlenz on 1 Jul 2009 at 2:47

GoogleCodeExporter commented 8 years ago
This issue was closed by r171.

Original comment by cmlenz on 1 Jul 2009 at 2:50

GoogleCodeExporter commented 8 years ago
And thanks for that patch, melkjug!

Original comment by cmlenz on 1 Jul 2009 at 2:57

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 189b0205fa.

Original comment by djc.ochtman on 3 Dec 2009 at 9:51