Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1A818431FC2 for ; Sat, 14 Mar 2015 10:03:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 2.438 X-Spam-Level: ** X-Spam-Status: No, score=2.438 tagged_above=-999 required=5 tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9XP7H3Xt2Qu1 for ; Sat, 14 Mar 2015 10:03:14 -0700 (PDT) Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net [87.98.215.224]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id C1DA2431FAE for ; Sat, 14 Mar 2015 10:03:14 -0700 (PDT) Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim 4.80) (envelope-from ) id 1YWpSh-00026D-3T for notmuch@notmuchmail.org; Sat, 14 Mar 2015 17:02:55 +0000 Received: (nullmailer pid 4978 invoked by uid 1000); Sat, 14 Mar 2015 17:02:41 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: libnotmuch logging overhaul v4 Date: Sat, 14 Mar 2015 18:02:25 +0100 Message-Id: <1426352554-4383-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 2.1.4 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2015 17:03:18 -0000 Obsoletes id:1419788030-10567-1-git-send-email-david@tethera.net The bad news is it is 3 patches longer; the good news is that I think those patches are just testing and make sense whether we do the rest or not. The first 4 patches together now have the have the effect adding a "quiet" version of open and create, slightly perversely named "_verbose". As always, naming things is hard. Patches 5 through 7 are just support for patch 8, and are unchanged from the previous version. [Patch v4 5/9] lib/database: add field for last error string [Patch v4 6/9] lib: add a log function with output to a string in [Patch v4 7/9] lib: add private function to extract the database for I'm not sure about the way notmuch_database_compact is handled here; maybe it should use an extra string argument like notmuch_database_open. [Patch v4 8/9] lib: replace almost all fprintfs in library with Unmodified from the previous series. [Patch v4 9/9] lib: eliminate fprintf from _notmuch_message_file_open