Add + use a db error callback function
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Feb 2011 08:43:03 +0000 (10:43 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Feb 2011 08:43:03 +0000 (10:43 +0200)
commitece9fbf5be8d93d28dbb114832a531dde03cfed2
tree56bfeb36fb3c16fc254efc5d2db9a32fc3b0e845
parentec031020eb7ed9a0cc3d086bcd7ae7611eb308fc
Add + use a db error callback function
- Commit 7309f7498134f7b62f27624a4cdb91e1c6b82578 caused loss of
  some BDB error messages due misreading the docs: we used to explicitly
  set errfile to stderr through some hoops, and errcall to what
  always was NULL. But calling set_errcall() disables any output to
  the db errfile, and since we're no longer calling errfile...
- Removing the set_errcall() would restore output on stderr, but
  making it go through rpmlog() seems more consistent and lets
  API users catch it through rpmlog callback (in theory at least)
lib/backend/db3.c