From: Zooko O'Whielacronx Date: Wed, 7 Jan 2009 18:54:11 +0000 (-0700) Subject: util: log: allow empty msgs (because downloader is using the "format" alternative... X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/frontends/%3C?a=commitdiff_plain;h=c01cfc0035bda209ab317d4857abeff979e41d58;p=tahoe-lafs%2Ftahoe-lafs.git util: log: allow empty msgs (because downloader is using the "format" alternative with no "msg" argument) --- diff --git a/src/allmydata/util/log.py b/src/allmydata/util/log.py index 8f17ab53..fab22f6b 100644 --- a/src/allmydata/util/log.py +++ b/src/allmydata/util/log.py @@ -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)