couch-doc-update: log errors to stderr and syslog (#4225)