From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EPpPKNzlqGILgwEAbAwnHQ (envelope-from ) for ; Tue, 14 Jun 2022 21:47:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wGcyKNzlqGKMsQAAauVa8A (envelope-from ) for ; Tue, 14 Jun 2022 21:47:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0C5FF33427 for ; Tue, 14 Jun 2022 21:47:40 +0200 (CEST) Received: from localhost ([::1]:49108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1CVn-0007iB-7w for larch@yhetil.org; Tue, 14 Jun 2022 15:47:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1CVC-0007LL-KJ for guix-patches@gnu.org; Tue, 14 Jun 2022 15:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1CVC-0004Ir-AE for guix-patches@gnu.org; Tue, 14 Jun 2022 15:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1CVC-0000Qc-9J for guix-patches@gnu.org; Tue, 14 Jun 2022 15:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55242] [PATCH 01/10] guix: import: Print the number of packages at the end. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 Jun 2022 19:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55242 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Attila Lendvai Cc: 55242@debbugs.gnu.org Received: via spool by 55242-submit@debbugs.gnu.org id=B55242.16552359961593 (code B ref 55242); Tue, 14 Jun 2022 19:47:02 +0000 Received: (at 55242) by debbugs.gnu.org; 14 Jun 2022 19:46:36 +0000 Received: from localhost ([127.0.0.1]:35862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1CUm-0000Pd-7e for submit@debbugs.gnu.org; Tue, 14 Jun 2022 15:46:36 -0400 Received: from mail-qt1-f170.google.com ([209.85.160.170]:41501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1CUk-0000PR-7S for 55242@debbugs.gnu.org; Tue, 14 Jun 2022 15:46:34 -0400 Received: by mail-qt1-f170.google.com with SMTP id k4so6880573qth.8 for <55242@debbugs.gnu.org>; Tue, 14 Jun 2022 12:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ehqlKvSg/fIsWWRN0D1csD7+0po7O2e9b6QcO+2FKPs=; b=hVvL42qG6uk3TER4ffUS/WCFtxZwgehiv93t/cU2FRTcbScPPb9Ymv3a6RfknGmO74 GOBeVItSS/tzAPZ84RxuqlOvxo5EhgHRHnQtzKlfFCgvcinckGyXTXmRkVSYsz+kmvD0 9mXmltziN9GGzblMoi+2rb8p7mgt1h2p+iMkrS+8IA8oHW/cJ7dZpKeMhjnf372ksyxv nMo3fXOspd0BtvR5ZdqHZxAosSXtBoC7+Y0vwJ556vvWfUXxnCki1cmbp4Hnb/N+BAwM zh+Bg3f+YwHm37hvleZN2shuNL0n8VJd8M13T1AAtjbv+Mk7s99EpYM/pCJbo/FsaIYc lfXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ehqlKvSg/fIsWWRN0D1csD7+0po7O2e9b6QcO+2FKPs=; b=gznakzC5eRjGUtnWEJS4dHI1XK+47kHqs1urSjFoI/Ql5oDPWyux39uDNZ1Z34lAju 8HNqwC7WiIxmmOqbCD3bdPpIdoAbvbhiEXj+66lVqejUnSDUoEIJAy3aKXtbY/Ze4x3C 4W6mBPJXDiIBZtL9yXuz4A9jI7virY8F8c3+6U4zMQh4up04ehYqzDEtyoAQz16D0O05 V+pu9k5O/vLwP2a1YFvFTLuCsbODwiV+OsbjZXbho1+dA0eTH3/t+LRj94++N7ZbRaFp TuQqsT6p7RqBUAQPMUBrcRUw8vZjBhLzr1vs+AzlzRMVSdvzg/Ce/1MTzeqZgEL68iIf OVIg== X-Gm-Message-State: AOAM532ZpznKIqRAQLs5ywIOukLsBUA6WAnS3Cy+YcDtrGRUzAOMMIdO gFIncvPYyXSQmVdeG9mdxnxKFhXqTJxVbbya X-Google-Smtp-Source: ABdhPJwdhrG9piUCB/BTYVRMJ3LXobtEvrjnwKV2mFmly54qDQbFwJUnfIYWOfvwLOIdwFq4YF13nw== X-Received: by 2002:a05:622a:3c6:b0:305:31f6:9d26 with SMTP id k6-20020a05622a03c600b0030531f69d26mr5805275qtx.166.1655235988401; Tue, 14 Jun 2022 12:46:28 -0700 (PDT) Received: from hurd (dsl-10-149-55.b2b2c.ca. [72.10.149.55]) by smtp.gmail.com with ESMTPSA id cc23-20020a05622a411700b00304f98ad3c1sm7358018qtb.29.2022.06.14.12.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 12:46:26 -0700 (PDT) From: Maxim Cournoyer References: <20220503114301.9524-2-attila@lendvai.name> <20220503114301.9524-3-attila@lendvai.name> Date: Tue, 14 Jun 2022 15:46:25 -0400 In-Reply-To: <20220503114301.9524-3-attila@lendvai.name> (Attila Lendvai's message of "Tue, 3 May 2022 13:42:54 +0200") Message-ID: <877d5jdo4u.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655236060; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=ehqlKvSg/fIsWWRN0D1csD7+0po7O2e9b6QcO+2FKPs=; b=UEcVjv2bveONDJiGmnBfUpd5V7zD1FKTSdzBykGqjEmPN2PclHShPhjRVwpNZlVXVj05cE EvDwAIHl+lsvlQb2zxrxiqx9bgUwkeW7oSW9S349yKJRc+RO66eAdFBD0sWYPvp6JLMl+s 5Tww0kSeYWvqYHDg0T1X1QFpGjh2fENW16S6FUAymUjFBwnwCVuTtS3V5/xN6nBdc82+ma 5WvrLfLGiuoJzyVuV9kVKbc0mI/tafZyPMFC82fwpawirryNqFFulmE4NVVrKVAkJZ2VGU suTltw7xDTYmSMjmVMUTSVFKVcCMRY4pNUz1ZvWw5FyycAyoV/4D8G+z/WScCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655236060; a=rsa-sha256; cv=none; b=mCg1xTzED0E3xWBcXelH6+63rCM5CUZjgIlNbNdyTS0BK33EQ2f6nfo6xafID2a2r1YLr2 jjjRvZDr+kCpJZSjYUDpLJ3XwCw2CgceQTN3s12l1V9yVTR4Ws6bhgXYGH9HlI6lpL4kqe WBqztmKLTKOq9xMlQHCNbH5aVZbjJjg9d3rBPvkygaxghqlfvb4MjR02nDDc+IOwAoGUg6 EvJTBHWpMpBHm4C9swAQhPxoONbEBzSfVEDLF60px7ZvsjrTBjp/kfE3DxvWD62LVyfptK 48ezktWbFtdqri/+HoEDB9aWbZyG+1GYms2oENr8+PoKiS+fTmtkp58TrmdXvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hVvL42qG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.51 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hVvL42qG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0C5FF33427 X-Spam-Score: 7.51 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8z3p8Fu3PPW0 Hello Attila, Attila Lendvai writes: > Introduce a (local) mockup logger, so that we don't need to keep adding and > deleting format's when debugging the codebase. > > * guix/import/go.scm (log.info) (log.debug): New macros. > --- > guix/import/go.scm | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/guix/import/go.scm b/guix/import/go.scm > index bb4bb7bb7b..0af5e4b5e2 100644 > --- a/guix/import/go.scm > +++ b/guix/import/go.scm > @@ -100,6 +100,17 @@ (define-module (guix import go) > > ;;; Code: > > +;; FIXME set up logging for the entire project, and replace this poor man's > +;; logger with the proper one. > +(define-syntax-rule (log.info format-string ...) > + (let ((port (current-warning-port))) > + (format port format-string ...) > + (newline port))) > + > +(define-syntax-rule (log.debug format-string ...) > + ;;(log.info format-string ...) > + '()) > + We alreading have 'warning' and 'info' in (guix diagnostics); perhaps we could also have 'debug', enabled when GUIX_DEBUG is set or something. Alternatively, there's a full blown logging library available in the Guile-Lib project, as (logging logger) [0]. [0] https://www.nongnu.org/guile-lib/doc/ref/logging.logger/ Maxim