mirror of
https://github.com/restic/restic.git
synced 2025-08-25 02:08:11 +00:00
update documentation to reflect DEBUG_LOG for release builds
This commit is contained in:
@@ -14,18 +14,12 @@
|
||||
Participating
|
||||
#############
|
||||
|
||||
*********
|
||||
Debugging
|
||||
*********
|
||||
**********
|
||||
Debug Logs
|
||||
**********
|
||||
|
||||
The program can be built with debug support like this:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ go run build.go -tags debug
|
||||
|
||||
Afterwards, extensive debug messages are written to the file in
|
||||
environment variable ``DEBUG_LOG``, e.g.:
|
||||
Set the environment variable ``DEBUG_LOG`` to let restic write extensive debug
|
||||
messages to the specified filed, e.g.:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
@@ -66,6 +60,21 @@ statements originating in functions that match the pattern ``*unlock*``
|
||||
$ DEBUG_FUNCS=*unlock* restic check
|
||||
|
||||
|
||||
*********
|
||||
Debugging
|
||||
*********
|
||||
|
||||
The program can be built with debug support like this:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ go run build.go -tags debug
|
||||
|
||||
This will make the ``restic debug <subcommand>`` available which can be used to
|
||||
inspect internal data structures. In addition, this enables profiling support
|
||||
which can help with investigation performance and memory usage issues.
|
||||
|
||||
|
||||
************
|
||||
Contributing
|
||||
************
|
||||
|
Reference in New Issue
Block a user