Do batch logging on successful commands too, not just failures.

This was an oversight for previous logging patch, ticket 1598
This commit is contained in:
Rob Crittenden 2011-08-19 01:35:22 -04:00
parent 9363260ca0
commit c39321d35c

View File

@ -101,7 +101,7 @@ class batch(Command):
result = api.Command[name](*a, **newkw)
self.info(
'batch: %s(%s): SUCCESS', name, ', '.join(api.Command[name]._repr_iter(**params))
'%s: batch: %s(%s): SUCCESS', context.principal, name, ', '.join(api.Command[name]._repr_iter(**params))
)
result['error']=None
except Exception, e: