]> arthur.barton.de Git - bup.git/commit - lib/bup/helpers.py
Introduce BUP_DEBUG, --debug, and tone down the log messages a lot. bup-0.18
authorAvery Pennarun <apenwarr@gmail.com>
Tue, 7 Sep 2010 01:00:57 +0000 (18:00 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 7 Sep 2010 01:02:38 +0000 (18:02 -0700)
commite3d646243627020f5b99e6d7a0b78e2584b422d1
tree66a4f692202b35387ec3f50879705c2a65b1c2d5
parent65cc02dc1f53900ca326831f27064c835a516bb4
Introduce BUP_DEBUG, --debug, and tone down the log messages a lot.

There's a new global bup option, --debug (-D) that increments BUP_DEBUG.  If
BUP_DEBUG >=1, debug1() prints; if >= 2, debug2() prints.

We change a bunch of formerly-always-printing log() messages to debug1 or
debug2, so now a typical bup session should be a lot less noisy.

This affects midx in particular, which was *way* too noisy now that 'bup
save' and 'bup server' were running it automatically every now and then.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/midx-cmd.py
cmd/server-cmd.py
lib/bup/client.py
lib/bup/git.py
lib/bup/helpers.py
lib/bup/ssh.py
lib/bup/vfs.py
main.py