← Back to team overview

desktop-packages team mailing list archive

[Bug 591873] Re: couchdb-glib sets its own, custom log handler for the g_debug

 

** Tags added: testcase

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to couchdb-glib in Ubuntu.
https://bugs.launchpad.net/bugs/591873

Title:
  couchdb-glib sets its own, custom log handler for the g_debug

Status in “couchdb-glib” package in Ubuntu:
  Fix Released
Status in “couchdb-glib” source package in Lucid:
  Fix Released

Bug description:
  couchdb-glib is built without --disable-debug-messages which results in a build which sets its own log handler for g_debug macro.
  This handler searches for the undocumented COUCHDB_ENV_DEBUG_MESSAGES environment variable to decide whether it should display debug message or not. It may confuse developers who depend on the g_debug default behaviour.

  According to rodrigo from #ubuntuone it's fixed in maverick.

  There may be some packages depending on the current for displaying
  debug only when some environment variable is set but I don't see why
  would anyone do it.

  TEST CASE:
  download attached testcase.py
  with libcouchdb-glib-1.0-2 0.6.3-0ubuntu1 you will get this result:
  kklimonda@vm-desert:~$ python testcase.py
  ** (process:1424): DEBUG: You will see this message
  kklimonda@vm-desert:~$ 

  and with libcouchdb-glib-1.0-2 0.6.3-0ubuntu1.1 this one instead:
  pkklimonda@vm-desert:~$ python testcase.py 
  ** (process:1590): DEBUG: You will see this message
  ** (process:1590): DEBUG: but not this with 0.6.3-0ubuntu1 installed
  kklimonda@vm-desert:~$

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/couchdb-glib/+bug/591873/+subscriptions