[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4] misc: Allow selective disabling of debug facility names
From: |
Daniel Kiper |
Subject: |
Re: [PATCH v4] misc: Allow selective disabling of debug facility names |
Date: |
Thu, 13 Jan 2022 19:56:30 +0100 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Sat, Jan 01, 2022 at 11:02:59PM -0600, Glenn Washburn wrote:
> Sometimes you only know which debug logging facility names you want to
> turn off, not necessarily all the ones you want enabled. This patch allows
> the debug string to contain facility names in the $debug variable which are
> prefixed with a "-" to disable debug log messages for that conditional. Say
> you want all debug logging on except for btrfs and scripting, then do:
> "set debug=all,-btrfs,-scripting"
>
> Note, that only the last occurence of the facility name with or without a
> leading "-" is considered. So simply appending ",-facilityname" to the
> $debug variable will disable that conditional. To illustrate, the command
> "set debug=all,-btrfs,-scripting,btrfs" will enable btrfs.
>
> Also, add documentation explaining this new behavior.
>
> Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel