From: Matthijs Kooijman Date: Sat, 7 Aug 2010 19:09:20 +0000 (+0200) Subject: log: Make the log_exception support a per instance logger. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fbackupninja.git;a=commitdiff_plain;h=8864a7ddb2f3da6b7823a78ba5ec60de18110caf;hp=8864a7ddb2f3da6b7823a78ba5ec60de18110caf log: Make the log_exception support a per instance logger. Previously, the logger to use was always passed to the decorator directly, thus it must be known at class-definition time. Now, the decorator supports not being passed a logger, in which case it will assume the decorated function is a method on an object that has a "log" attribute. ---