mirror of
https://github.com/restic/restic.git
synced 2026-03-06 14:46:23 +00:00
Introduce debug tags and debug breaks
The environment variable DEBUG_TAGS can be used to control what is
printed on stderr. Example:
DEBUG_TAGS="+all,-Archiver.*" ./restic backup foo
The variable DEBUG_BREAK can be used to set a breakpoint (implemented
using SIGSTOP):
DEBUG_BREAK=Archiver.Snapshot ./restic backup foo
This commit is contained in:
@@ -2,4 +2,6 @@
|
||||
|
||||
package restic
|
||||
|
||||
func debug(fmt string, args ...interface{}) {}
|
||||
func debug(tag string, fmt string, args ...interface{}) {}
|
||||
|
||||
func debug_break(string) {}
|
||||
|
||||
Reference in New Issue
Block a user