Correct traceback printing

This commit is contained in:
Michal Čihař 2012-02-28 14:03:33 +01:00
parent 8c8f3c6ae4
commit 62d3c582d0

View File

@ -317,5 +317,5 @@ class Unit(models.Model):
def save(self, *args, **kwargs):
if not 'request' in kwargs:
logger.error('Unit.save called without request object: %s', traceback.format_exc(e))
logger.error('Unit.save called without request object: %s', '\n'.join(traceback.format_stack()))
super(Unit, self).save(*args, **kwargs)