From c01cfc0035bda209ab317d4857abeff979e41d58 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Wed, 7 Jan 2009 11:54:11 -0700 Subject: [PATCH] util: log: allow empty msgs (because downloader is using the "format" alternative with no "msg" argument) --- src/allmydata/util/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.45.2