added --debugfilter (and annex.debugfilter)

This commit is contained in:
Joey Hess 2021-04-05 15:21:20 -04:00
parent aaba83795b
commit 1b645e1ace
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
9 changed files with 65 additions and 14 deletions

View file

@ -780,11 +780,27 @@ may not be explicitly listed on their individual man pages.
* `--debug`
Show debug messages.
Display debug messages.
* `--no-debug`
Disable debug messages.
Disable display of debug messages.
* `--debugfilter=name[,name..]`
When debug message display has been enabled by `--debug`, this filters
the debug messages that are displayed to ones coming from modules with
the specified names.
To find the names of modules, see the full debug output, which includes
the module name, eg "(Utility.Process)"
The full module name does not need to be
specified when using this, a substring of the name will do.
For example, `--debugfilter=Process,External` will display debugging
output when git-annex runs processes, and when it communicates with
external special remotes.
* `--numcopies=n`
@ -1214,6 +1230,12 @@ repository, using [[git-annex-config]]. See its man page for a list.)
Set to true to enable debug logging by default.
* `annex.debugfilter`
Set to configure which debug messages to display (when debug message
display has been enabled by annex.debug or --debug). The value is one
or more module names, separated by commas.
* `annex.version`
The current version of the git-annex repository. This is

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="joey"
subject="""comment 6"""
date="2021-04-05T19:28:36Z"
content="""
I've implemented --debugfilter which can select the debug output you want
to see.
Also started splitting out the immutable parts of AnnexState, but that does
not yet include debug options, due to the way option parsing currently
works. Once that gets done, there's a new fastDebug that can be used inside
tight loop code paths.
"""]]