From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#51335: 29.0.50; Use warnings facility for reporting Gnus errors Date: Sat, 06 Nov 2021 14:17:37 -0700 Message-ID: <87zgqh2dce.fsf@ericabrahamsen.net> References: <87sfwtxa6w.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9365"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 51335@debbugs.gnu.org Cancel-Lock: sha1:6YBABTCOSE7rKuQ1ujna4RBqRGc= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 06 22:19:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjT5h-0002Dp-QW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 22:19:09 +0100 Original-Received: from localhost ([::1]:44284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjT5g-00082r-MS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 17:19:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjT5b-00082j-79 for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 17:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjT5a-0008CM-U8 for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 17:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjT5a-0007RD-Gz for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 17:19:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87sfwtxa6w.fsf@ericabrahamsen.net> Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Nov 2021 21:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51335 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163623348328523 (code B ref -1); Sat, 06 Nov 2021 21:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Nov 2021 21:18:03 +0000 Original-Received: from localhost ([127.0.0.1]:50911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjT4c-0007Pz-QI for submit@debbugs.gnu.org; Sat, 06 Nov 2021 17:18:03 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjT4a-0007Pa-D3 for submit@debbugs.gnu.org; Sat, 06 Nov 2021 17:18:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjT4a-0007xt-6e for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 17:18:00 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:57858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjT4Y-00080N-Cb for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 17:17:59 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mjT4V-0000mF-1U for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 22:17:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, FAKE_REPLY_C=1.486, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:219163 Archived-At: Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> I will suppress the urge >> to apologize for my *Group* buffer appearance, I'm in the middle of some >> home improvements. > > 😋 > >> Lastly, the messages coming from Gnus are very much set up for regular >> message display, in particular the "...done" pattern, which >> doesn't work with the warnings setup. > > I'm having a bit of a problem with imagining the use case for that bit. > I don't think any users will ever want to look at a log/warning buffer > containing "Sorting threads..." etc -- it looks like a debugging tool > that's should be totally internal and not involve *Warnings* at all. > > I don't think any other packages do anything like that with their > logging facilities. Well that's mostly because I've turned `gnus-verbose' up to 10, and also introduced an option `gnus-log-all-messages' which doubles `gnus-message' output to the logging buffer. That is nil by default, but I've set it to t here, so this is absolutely as loud as the logging could possibly be. If we adopt something like this, I think it would be worth doing a bit of shuffling regarding which messages are sent through `gnus-error' and which through `gnus-message'. Probably I'd introduce a `gnus-log' function, have `gnus-error' call that, and replace some `gnus-message' calls with `gnus-log'. Ideally there would be no reason to have the option `gnus-log-all-messages' at all, and the "Sorting threads..." messages would only ever be messages.