From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cByVKUvZ2WWNMQAA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Feb 2024 12:55:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cByVKUvZ2WWNMQAA62LTzQ (envelope-from ) for ; Sat, 24 Feb 2024 12:55:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=f+0Njw4A; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708775755; 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: content-transfer-encoding:content-transfer-encoding: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=IgVXhzR8uR93ROuNImdpEm6igjl8PSXH44Mt7p7J3sU=; b=HdJ96pCIdNcKN2dg66vNxzDU2/Z5CQqIs5DfNIhBFbUGh18DKfxVkfNqYgZj4mhrGblOiu PkmHmpjrpHz/EDnAiTKV6uXLx5BFHBQcYXEjZgxPIAI41uFfSDct8m5lx6CA1MxN3twFtj b9lNiYtX5c4TXJX++P89x+CTyN8n7Fyej37AKunv/1IB9n4k8pC1jqo2/Z40qSeo6hSl9Q x1RiBb5mPylPrb2SSwCIzXwp0gGhIuZ3ai650welg1/w55rurzPWpJp1c/Cwg+gukvfd5r p/KVLFtY7GEpOhy4KOctRhSk/brTVqrse2uIr29ARV8j2wrAUhyxuzbYTOvPVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=f+0Njw4A; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708775755; a=rsa-sha256; cv=none; b=Tf6HjH7TfQdCI+42a4E5/Pvchj8GJ/m4LNY2C9XZrEvvwNe9yM/+npFqj4KUuPG1eJoqs7 cQ4k4BTJBBp4xg7TyL7Z4snjStK6pnvWn4G1ihzoQqW5Axm9Y0/REqXfbxLEFQbLEB8tYn 8jQ4v7O1pOuAz4jnC7DRrKjpZsh5T5zR+GlZJSln3U0s2atHZRkk/2dHaSLaQGND0haqmv fMjVR/s/lNJQDsFxN4JLWEMMZ539FH874xPPnL4Mww+D0cOp0QWeumK9B53zBDP06W83MS LP1KphxyP9KeLWfM875J8W5yvEGP6oLdXn45Cvh+YfkChCVoheh4pp1bzyvJQQ== 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 5F14A6C122 for ; Sat, 24 Feb 2024 12:55:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdqd4-0005oC-1I; Sat, 24 Feb 2024 06:55:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdqd1-0005ns-Nm for guix-patches@gnu.org; Sat, 24 Feb 2024 06:55:39 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdqd0-0003DC-3z for guix-patches@gnu.org; Sat, 24 Feb 2024 06:55:39 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rdqdN-0008Uy-La for guix-patches@gnu.org; Sat, 24 Feb 2024 06:56:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68946] [PATCH v2] guix: Add logging module. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Feb 2024 11:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 68946@debbugs.gnu.org, Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Josselin Poiret , Ricardo Wurmus , Christopher Baines Received: via spool by 68946-submit@debbugs.gnu.org id=B68946.170877571632569 (code B ref 68946); Sat, 24 Feb 2024 11:56:01 +0000 Received: (at 68946) by debbugs.gnu.org; 24 Feb 2024 11:55:16 +0000 Received: from localhost ([127.0.0.1]:50524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdqcd-0008TD-5P for submit@debbugs.gnu.org; Sat, 24 Feb 2024 06:55:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rdqST-0007wp-QB for 68946@debbugs.gnu.org; Sat, 24 Feb 2024 06:44:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdqS0-00005O-0U; Sat, 24 Feb 2024 06:44:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=IgVXhzR8uR93ROuNImdpEm6igjl8PSXH44Mt7p7J3sU=; b=f+0Njw4ApXk2d7YPdffY 6+tkfg3Pc+huVTVOwCTIa1QJSoDk2u1dQoCQ2yNZ3+OQ9h8bSKIHVZwUX7WHBstGqq4fdHvQF7bcE 4BZtuGFwDLJA7c0vuy1tbijRFt6dEDXnho5a3Xd6NrYNkdvn8+OHgG9fzu+fhZwC9f9FAMrB0fcMs P/QWYxYUKxOdfhG+624VYP78Pl0ELpie7u61Ki8gN2dE/7QZdw4i1AY/NVNf/w9ArOp0mGHXQNiQp OVXiyGHlPPq80yE9vL6P3JXH66Tb8H6Zgf0YgeuJtPpVTDfb4hfXDoZtMEGhZOZSA31i/HvF88bD/ wT+6ONG+7tEg8A==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87edd4oude.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 22 Feb 2024 20:13:33 -0500") References: <0b81168e693a21f7fb08bd7677a5cc3120418fc9.1707626620.git.maxim.cournoyer@gmail.com> <87bk8dl8mm.fsf@gnu.org> <87edd4oude.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 6 =?UTF-8?Q?Vent=C3=B4se?= an 232 de la =?UTF-8?Q?R=C3=A9volution,?= jour de l'Asaret X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 24 Feb 2024 12:44:13 +0100 Message-ID: <87ttlyaxyq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.61 X-Spam-Score: -5.61 X-Migadu-Queue-Id: 5F14A6C122 X-Migadu-Scanner: mx11.migadu.com X-TUID: Lj8TkBfGF00S Hi, Maxim Cournoyer skribis: >> My concern with logging is that it=E2=80=99s not a good fit for the func= tional >> parts (unless it has a functional interface like =E2=80=98pk=E2=80=99, b= ut that=E2=80=99s still >> sorta =E2=80=9Ccluttering=E2=80=9D otherwise functional code), and I=E2= =80=99m not sure which >> imperative part it could be used for (I don=E2=80=99t doubt there=E2=80= =99s such a >> thing, but I lack imagination). > > I understand the concern, but I think to be able to trace execution > easily at run time with a simple `--log-level=3Ddebug' would provide value > enough (as a developer aid) to justify it. Again, I lack imagination; where would you use it today? I think we should only add this facility once it has at least one user. Otherwise people using =E2=80=98--log-level=E2=80=99 would be disappointed.= :-) Ludo=E2=80=99.