From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wBOlLBgXVWVeXQEAG6o9tA:P1 (envelope-from ) for ; Wed, 15 Nov 2023 20:08:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wBOlLBgXVWVeXQEAG6o9tA (envelope-from ) for ; Wed, 15 Nov 2023 20:08:08 +0100 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 5207C150D2 for ; Wed, 15 Nov 2023 20:08:08 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=wmeyer.eu header.s=mail header.b=iALvHDxA; 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"; dmarc=pass (policy=none) header.from=wmeyer.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700075288; 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=vwFGjzDoNIO8EB2IoHgUZsCVtquHz3YpngGMqFoBo0g=; b=ti0AyVfLQ1LROlfwqHJn1e+x4bsWmkSUVgLFeSLPD6prVr60oqtvgoaE04hHoF8zCUZ8H2 k67s1Lq3UfYd5kXNYWvZaDzXVGiPQBLr1AjTGMMscg7MaaB3ASN7aRxVOpsN1+Es09H3u3 2NzEfE9/RDgCijjxmbC3vStHWGjDaW9NwxKmg5lAHZEag2zFIRE1rCVKr2mnfHqWh7oYec agvA/cRBgJPt0v3x0WeEoDdLly4Y8BMLAlO8Qapb/yRY4VUqJjE0pQgNKtfHLabwCaN7zZ bR3aFlQsHAk1V8gXmSSq7Fh+4D2s6r63nGm+KZfYRmDYtQTfhWr5eBK3kG3iKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=wmeyer.eu header.s=mail header.b=iALvHDxA; 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"; dmarc=pass (policy=none) header.from=wmeyer.eu ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700075288; a=rsa-sha256; cv=none; b=gLNakJMoxrv+HNdVqcg6keYlKAgj+6yV16hW7cmHKprZqcrLi/dKebvE+LE+PxeaV/13E/ FHcUclOaa1uG4WUVNjwsgXYsHV2JAgXGY1OlGUHm2ZnW6eJcq6tjmYY9wXMe+xQYZopB+s TCmMl8lHU758MIcsEToXFi+TzS4ymnN/NEz4hM19xtTBy5nLbKHnwr1WRXKsMdTd7/7bYM wl1trrszPsX50uJo9DRimtR89jXTB6Kh8H56DrlQcXrpfBzcH/v4e9llQjJm0ktLAwVWcG IF2gkrPRrZpLvFqzR7wweo9XoKmjJB0owGu1/AOM/OZLeClvnPaR2jIjS5tTxQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3LEj-0004Ci-K0; Wed, 15 Nov 2023 14:07:41 -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 1r3LEi-0004CU-0K for help-guix@gnu.org; Wed, 15 Nov 2023 14:07:40 -0500 Received: from mail.wmeyer.eu ([95.216.196.112]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3LEf-0002vL-GM for help-guix@gnu.org; Wed, 15 Nov 2023 14:07:39 -0500 References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wmeyer.eu; s=mail; t=1700075253; bh=vwFGjzDoNIO8EB2IoHgUZsCVtquHz3YpngGMqFoBo0g=; h=References:From:To:Cc:Subject:Date:In-reply-to; b=iALvHDxArxgjtcBVopSzl3NueiiuHLMe8MWgP02aICTDeEwJtMLVaqHCid7NoFsAY UPlP5YHmZgqO3OBMhAu/9BEZo/kpgoF5hgmivNy0Zbqn19E4pdovPXi/+k3uUfVsGi qhOeChKf6V04GpH31iswSdvHe8p+aU2mxmwklhNs= From: Wilko Meyer To: jgart Cc: help-guix@gnu.org Subject: Re: --debug LEVEL not documented in CLI Date: Wed, 15 Nov 2023 18:47:34 +0100 In-reply-to: Message-ID: <87bkbu4yz3.fsf@wmeyer.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=95.216.196.112; envelope-from=w@wmeyer.eu; helo=mail.wmeyer.eu 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, WEIRD_PORT=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.54 X-Spam-Score: -9.54 X-Migadu-Queue-Id: 5207C150D2 X-Migadu-Scanner: mx13.migadu.com X-TUID: b2y+0TxJo1wa Hi, =20 "jgart" writes: > What debug LEVEL's are permissible? > > For example, is 79 allowed? > > Or 5, 4, 3, 2, 1? > > What is the difference between the LEVELs? Where is the input LEVEL cutof= f? At 6? The documentation[0] on common build options seems to be a bit more detailed on this at least on what range is available: >> Produce debugging output coming from the build daemon. level must be >> an integer between 0 and 5; higher means more verbose output. Setting >> a level of 4 or more may be helpful when debugging setup issues with >> the build daemon. So a range between 0 and 5 seems to be in use. It's possible to use a level >5, e.g. 79 or something else, which has the same effect as using 5 as a debug level. However it's not quite clear from the documentaton itself what the respective debug levels do. The levels seem to be defined in nix/libutil/types.hh: typedef enum { lvlError =3D 0, lvlInfo, lvlTalkative, lvlChatty, lvlDebug, lvlVomit } Verbosity; and all/most(?) levels seem to be in use: (guix230 (~/devel/guix)) =CE=BB rg -cl 'lvl(Error|Info|Talkative|Chatty|Deb= ug|Vomit)'=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 nix/nix-daemon/guix-daemon.cc:6 nix/libutil/serialise.cc:1 nix/libutil/util.hh:1 nix/nix-daemon/nix-daemon.cc:6 nix/libutil/types.hh:6 nix/libutil/util.cc:9 nix/libutil/affinity.cc:3 nix/libstore/sqlite.cc:2 nix/libstore/local-store.cc:18 nix/libstore/globals.cc:1 nix/libstore/optimise-store.cc:15 nix/libstore/pathlocks.cc:2 nix/libstore/build.cc:45 nix/libstore/gc.cc:21 (guix230 (~/devel/guix)) =CE=BB rg 'lvl(Error|Info|Talkative|Chatty|Debug|V= omit)' nix/libstore/local-store.cc=20=20 154: printMsg(lvlError, "waiting for the big store lock..."); 829: if (!err.empty()) printMsg(lvlError, "substitute: " + err); 1240: printMsg(lvlInfo, format("exporting path `%1%'") % path); 1453: printMsg(lvlError, format("reading the store...")); 1464: printMsg(lvlInfo, "checking path existence..."); 1477: printMsg(lvlInfo, "checking hashes..."); 1486: printMsg(lvlTalkative, format("checking contents of `%= 1%'") % *i); 1490: printMsg(lvlError, format("path `%1%' was modified= ! " 1500: printMsg(lvlError, format("fixing missing hash= on `%1%'") % *i); 1507: printMsg(lvlError, format("updating size field= on `%1%' to %2%") % *i % current.second); 1520: printMsg(lvlError, format("error: %1%") % e.msg()); 1522: printMsg(lvlError, format("warning: %1%") % e.msg(= )); 1541: printMsg(lvlError, format("path `%1%' is not in the store") % = path); 1559: printMsg(lvlError, format("path `%1%' disappeared, removin= g from database...") % path); 1562: printMsg(lvlError, format("path `%1%' disappeared, but it = still has valid referrers!") % path); 1567: printMsg(lvlError, format("warning: %1%") % e.msg(= )); 1584: printMsg(lvlInfo, format("checking path `%1%'...") % path); 1595: if (!res) printMsg(lvlError, format("path `%1%' is corrupted or mi= ssing!") % path); judging from my experience, the difference between 0..3 doesn't seem to be that noticeable in terms of increased verbosity; 4..5 seem to be pretty verbose (whereas the difference between 4 and 5 is also barely noticeable). I think it'd be good to update the documention/--help output with a bit more explanation on this (for this, it'd be probably good to know more about when to use which level/what the implications of each level are). [0]: https://guix.gnu.org/manual/en/html_node/Common-Build-Options.html --=20 Kind regards, Wilko Meyer w@wmeyer.eu