From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 UH5UKMtXcWKULAEAbAwnHQ (envelope-from ) for ; Tue, 03 May 2022 18:26:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UMxHKMtXcWIEawEA9RJhRA (envelope-from ) for ; Tue, 03 May 2022 18:26:51 +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 54E27132A3 for ; Tue, 3 May 2022 18:26:51 +0200 (CEST) Received: from localhost ([::1]:49454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlvMQ-0004CI-56 for larch@yhetil.org; Tue, 03 May 2022 12:26:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlvJi-0000YB-P0 for guix-patches@gnu.org; Tue, 03 May 2022 12:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46893) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlvJi-0007RA-E4 for guix-patches@gnu.org; Tue, 03 May 2022 12:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlvJi-00031m-9i for guix-patches@gnu.org; Tue, 03 May 2022 12:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55242] [PATCH 03/10] guix: import: go: Add mockup logging facility. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 May 2022 16:24: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 , 55242@debbugs.gnu.org Received: via spool by 55242-submit@debbugs.gnu.org id=B55242.165159503611626 (code B ref 55242); Tue, 03 May 2022 16:24:02 +0000 Received: (at 55242) by debbugs.gnu.org; 3 May 2022 16:23:56 +0000 Received: from localhost ([127.0.0.1]:40790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlvJb-00031R-NK for submit@debbugs.gnu.org; Tue, 03 May 2022 12:23:55 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:33318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlvJV-00031A-QJ for 55242@debbugs.gnu.org; Tue, 03 May 2022 12:23:54 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id SGPo2700i4UW6Th06GPpKq; Tue, 03 May 2022 18:23:49 +0200 Message-ID: <5322f2d5dbe9e5b442c17084279d188f9c6c6f1d.camel@telenet.be> From: Maxime Devos Date: Tue, 03 May 2022 18:23:46 +0200 In-Reply-To: <20220503114301.9524-3-attila@lendvai.name> References: <20220503114301.9524-2-attila@lendvai.name> <20220503114301.9524-3-attila@lendvai.name> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-xIWZQoTX+dfNphYFd556" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1651595029; bh=UCgM1THE37v2sUKaqGO9NDXkdMrB6F1ao6pj25myHTU=; h=Subject:From:To:Date:In-Reply-To:References; b=lf6CIVpxtuHByf+i1fvAetGHJNQ6nEgcZyJzwuSi08Zv1noZ4YdWDtYvN+NOjmX5a EXEQ04QNJDy+nW9FM2v006HuuHSkAfFgMg7v2zdNuMfism5Uj6f7HEW4XVNuH5hroq 2CLQNJaTWqqPV1iFxTOXYxbUKS6I29rTWAqh0rjnPIVLbSMl0NNumJe/niMAlZ1oD+ gOFTPLO+WdD/le3Q55Z/7RxIyKmrtTABINAOrBps86ffmy7FtCQQdngUArYdvu7OGA KfqutONMKjm/LRIN7r4IW9zE/UtkbL3a1g72jnzNxcCtOMu6Z6HUEfw6iKFyFUTVou IRH+nD6+f3rQA== 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=1651595211; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=UCgM1THE37v2sUKaqGO9NDXkdMrB6F1ao6pj25myHTU=; b=S4Sv1iSjBLLsx5WDapYHWB0uUorkXKgAq8R3x9FZA59XXLDdN2k5RVy+2wACR/FFHYr0i6 0yLLN6noqOEfyLmvObyzCj6x7CrRQdJhiaf+P+ixem6A8ajv+eaz3hMZB6TolpFEHrlg/s x88aydWrbHXexOciRMny7o3sg7d+k/ztSoq2KGmVStLL+YVbtQ2H6/8fjg1GoAf/VaJMw5 snBA6+VM67HmCrCYBDqhAFNG577Yn1OLJVvGP/cq41S0JkgQQwKEJMduv4Y+w4DIVdkuf7 3Ljdf2G0oZXDTdBYFs3FL83BptjUYZ3XVJdupKYOl1Qf90gHoCOYYJfVpOhJRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651595211; a=rsa-sha256; cv=none; b=ibjLZbrltuBorSJTKdPI1EkGTZQiAkpZkgoJOZAo9iejI6EbB0THqdjqYYr0iUUihvg8qv X5t0kbK4TY2JPBdGuqzddpgeWBz9NsBsHZVDpqcC9I38+7qBw1mQTl0eynmzazYF9iA/OH B3O1YJT436CxJSNV6NO2hJVE4soeEP/bt/DaXIGzO0IsNUrETsrqfhr67ufp3+DW08ezjx NpDcEQ3hewdXTQBEY9g+YVQ2R7W9BeWU8BmyQ4CuO5Gjk5D89IQF7lwlj/PR2xKPl9ldb+ 5GByZmD5kGEvlM2aqUXTpdwLA/LkzmXhzGT3l44Y+lse20utZR7AuG1ylDUKKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=lf6CIVpx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: 3.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=lf6CIVpx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: 54E27132A3 X-Spam-Score: 3.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: +KIydGhZjicW --=-xIWZQoTX+dfNphYFd556 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op di 03-05-2022 om 13:42 [+0200]: > +;; FIXME set up logging for the entire project, and replace this poor ma= n's > +;; logger with the proper one. > +(define-syntax-rule (log.info format-string ...) > +=C2=A0 (let ((port (current-warning-port))) > +=C2=A0=C2=A0=C2=A0 (format port format-string ...) > +=C2=A0=C2=A0=C2=A0 (newline port))) > + > +(define-syntax-rule (log.debug format-string ...) > +=C2=A0 ;;(log.info format-string ...) > +=C2=A0 '()) We already have a logging functionality: 'info' from guix/diagnostics.scm. No 'debug' yet though ... Greetings, Maxime. --=-xIWZQoTX+dfNphYFd556 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYnFXEhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7pTbAQCwVTyNG23CikuzpGUeBSogPU7o be+F8X+mTVTMTN5X/gEA1PByz5LIVERSANNoSpGtSn2gp/5C50nTNiyusnR6/AA= =yBDF -----END PGP SIGNATURE----- --=-xIWZQoTX+dfNphYFd556--