log: Add log_exception decorator.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sat, 7 Aug 2010 18:46:22 +0000 (20:46 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sat, 7 Aug 2010 18:46:22 +0000 (20:46 +0200)
commit83ac2051e6b8583650fa9ce295afe8c61526b692
treee94dd1030a93317fe7a321762bf8d2a659ecb27b
parentdb3987f515ca9f9e9d9437f7a7454e050e1ec273
log: Add log_exception decorator.

This decorator catches, logs and swallows exceptions thrown in the
decorated function.
src/lib/backupninja/log.py