]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
util: log: allow empty msgs (because downloader is using the "format" alternative...
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 7 Jan 2009 18:54:11 +0000 (11:54 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 7 Jan 2009 18:54:11 +0000 (11:54 -0700)
src/allmydata/util/log.py

index 8f17ab534ebc85195b764c25f3e32e6036060a02..fab22f6bce3108a0680b532dea7c32c9e79aba16 100644 (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)