From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mH+vFUq7JmVaHQEAauVa8A:P1 (envelope-from ) for ; Wed, 11 Oct 2023 17:12:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mH+vFUq7JmVaHQEAauVa8A (envelope-from ) for ; Wed, 11 Oct 2023 17:12:10 +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 3998766E82 for ; Wed, 11 Oct 2023 17:12:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Q13LWpiO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697037130; a=rsa-sha256; cv=none; b=LQ0Yd9CAYNLmM4J8r5J6e86+6uFUWUne4qkDVeAC6oV1UCLDT7to+EDWSxASfse6RrniB0 ZuRiyhLHWHgE34QVXR8jl0w2MHnkoXKCx07cQ9LXHsXPb73SduaTGez3sLyQioh7DoNl8u viYiFN5JqxS1dYLdq2H0//GbF42LLwSwo+Uoo6noNXqwqg2TS+LjvQdhCzDGJJmODYb3fA /Y1IghGxkTzI79SXXmNuoaw2kVaO5llDwzGicq2XRqIJsH6C9P6gl+3+BtG2RsXZoiWwXP WyrOEJeeGEZBFXvYp7gGFx482E+yPLNfEpoIId1hIQPCCaLreb7G3dMUKiQ9Mw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Q13LWpiO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697037130; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Wm5Ax+bcI1+MCrwaUPtPuDhAC6ar0zITFNlWDB/xQIs=; b=DGjtXMPVIHvnNuMXJgN5E36CugIwycJ6/DSL1SM9f28I03PdXjYjYhUfybEF6IpoN3Fv0i Xf6xNyawRdXRjXbg9c6nTIGWuA+Sg3A7/rE6JkBm8iuPttYqZrw1m1GDZgGwA7DlNjWTja YoK5IrMnX8hvzkILV300Rp+VJy2ymVxa962+TJ6idIs1qSi7YmKNhHNNeg1VFxOZMrujxH msSduuCQZPoxbPO19VtXXBdMS48GlxfKQNGu6HHBptKQ3Qe4afKHX7PHi35Bbn9y/MAFOx X7GXlPiTmBhUdLbrZq39BK7Zu1/N167O66m0lBhCQYxMdm+q3iY9ZsgrIF1Lyg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqasA-0006Vu-Pt; Wed, 11 Oct 2023 11:11:42 -0400 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 1qqasA-0006Vf-5Q for help-guix@gnu.org; Wed, 11 Oct 2023 11:11:42 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqas8-0004YN-Jp for help-guix@gnu.org; Wed, 11 Oct 2023 11:11:41 -0400 Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-65b0e623189so38237586d6.1 for ; Wed, 11 Oct 2023 08:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697037099; x=1697641899; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wm5Ax+bcI1+MCrwaUPtPuDhAC6ar0zITFNlWDB/xQIs=; b=Q13LWpiOmR1hT/VsJ9vpmhuT1DEzpzU+SqqjkEkUR83DJCtdODPkW7UUxtVej1Y14W /ewPUYQuHa9Jb8LKEQPRvxcD8hGaLCCZnbBf7MBi8RqoFBpdbE3YP9BfnlcE0+XDTBNn AaTiZSPmie1fNiNfI/tDm9tlgGAOcEoYnec4PfW9DReAS9qotJrBOFxsuFGlWbsOVftC pRYFd0Uyunw8YD2UyWHrqOY6mu2qbKABXmNVKPf44vStdF5+uRNOORFQ/jg2HdBKIXgu pbWWErLs7nOdkT7KoI3GiBQVp9DGfA3IKF6tMI82uss8xtGewT0TzGJ1EnXQZqBVpG8b nJqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697037099; x=1697641899; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Wm5Ax+bcI1+MCrwaUPtPuDhAC6ar0zITFNlWDB/xQIs=; b=moZPZjp6czEc9S7gnDwBoxchcz0jyeZE3jXiMPgJZtVbGajLroYmrNV31mr33UJqe5 3ekuntnOV9CTA00gP4zt3QTiIKE9/AQm4CF9LTK2E5i5IuUgxYZkvftJdH4bBX5+skIF sMpD9VF+9gRb/raSQQqOmGqNOItSO0FNaAXwFiB1Uk+Mzt0rMTmzew27s66cTveBPAxR 55oNigf3mZItcLQISrNV8blzjWC7ZxpShX5Cv3neNlmhpvkADFaPgmU6eBjwYrhAiA5L z10e2r2oiaJpumVxAmNE4bJJVUXzOF3LJo6bEUd+7VRDygU7EMhM25sN3PG6N8AbzuVU uZsw== X-Gm-Message-State: AOJu0YwKHGW4GoaamTNsmuziukCKYAQUz5ev01zger3jnCSTaxmHr8IQ mOPUW5jxXKS13ifNtZrhP1mQgpTT2ZT1Og== X-Google-Smtp-Source: AGHT+IEM1b6FrEnKSlyMmkNYwoLo3Os8rPuJoYOiPwfPQNv9p6iOB0/GPOyKqDAsjiAYWdh7YAUveA== X-Received: by 2002:a0c:a611:0:b0:65d:afc:3a69 with SMTP id s17-20020a0ca611000000b0065d0afc3a69mr19294552qva.6.1697037099025; Wed, 11 Oct 2023 08:11:39 -0700 (PDT) Received: from hurd (dsl-10-128-66.b2b2c.ca. [72.10.128.66]) by smtp.gmail.com with ESMTPSA id q11-20020a0ce20b000000b0065b13180892sm5746313qvl.16.2023.10.11.08.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 08:11:38 -0700 (PDT) From: Maxim Cournoyer To: Simon Tournier Cc: jgart , help-guix@gnu.org Subject: Re: -v, --verbosity=LEVEL use the given verbosity LEVEL In-Reply-To: <87bkd5tfmj.fsf@gmail.com> (Simon Tournier's message of "Wed, 11 Oct 2023 16:09:40 +0200") References: <21d2ab385ef16bf3404aed2cdc747fd3@dismail.de> <87bkdo29gh.fsf@gmail.com> <87bkd5tfmj.fsf@gmail.com> Date: Wed, 11 Oct 2023 11:11:37 -0400 Message-ID: <8734yhdwie.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf30.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -9.53 X-Spam-Score: -9.53 X-Migadu-Queue-Id: 3998766E82 X-TUID: 1sLXvHI/NYsX Hi, Simon Tournier writes: > Hi, > > On Tue, 26 Sep 2023 at 12:19, Maxim Cournoyer = wrote: > >>> Where should the user of the Guix command-line interface be expected >>> to read about the verbosity LEVEL argument that they can pass to >>> `--verbosity` and that is also valid? > > To answer a question elsewhere in this threads, I think these levels > come from Nix and daemon side. > >> See info '(guix) Invoking guix build': >> >> --8<---------------cut here---------------start------------->8--- >> =E2=80=98-v LEVEL=E2=80=99 >> =E2=80=98--verbosity=3DLEVEL=E2=80=99 >> Use the given verbosity LEVEL, an integer. Choosing 0 means that >> no output is produced, 1 is for quiet output; 2 is similar to 1 but >> it additionally displays download URLs; 3 shows all the build log >> output on standard error. >> --8<---------------cut here---------------end--------------->8--- > > Maybe, we could add an option as =E2=80=99--list-verbosity=E2=80=99 which= would display > that information. > > Well, the main issue, IMHO, is that the option =E2=80=99--verbosity=E2=80= =99 is not > shared across various command-line scripts, but implemented script per > script, IIRC. Oh, is it? That's not great. I've never used it, but Guix already soft-depends on guile-lib, and guile-lib provides a logging library. Perhaps if we used that we would benefit from some standardized and global way to perform logging across at least the host-side code? And that'd help more straightforwardly reason and explain the levels? I have experience with logging from Python and would like to have a similar tool available in Guix. Instead of adding pk all over the place when debugging enabling the debug level (assuming we've added a few well placed debug level logging directives in the code) would help trace execution and pinpoint where things go wrong easily. --=20 Thanks, Maxim