util: log: allow empty msgs (because downloader is using the "format" alternative with no "msg" argument)

This commit is contained in:
Zooko O'Whielacronx 2009-01-07 11:54:11 -07:00
parent 3267984fa9
commit c01cfc0035

View File

@ -57,5 +57,5 @@ class PrefixingLogMixin(nummedobj.NummedObj, LogMixin):
else:
self._prefix = "%s: " % (self.__repr__(),)
def log(self, msg, facility=None, parent=None, *args, **kwargs):
def log(self, msg="", facility=None, parent=None, *args, **kwargs):
return LogMixin.log(self, self._prefix + msg, facility, parent, *args, **kwargs)