From: Brian Warner Date: Wed, 29 Oct 2008 04:35:58 +0000 (-0700) Subject: node.py: remove unused old_log() function X-Git-Url: https://git.rkrishnan.org/vdrive/%22file:/frontends/using.html?a=commitdiff_plain;h=67ae5c1b2f389259e916a3d9d2fcf0525fe24fd3;p=tahoe-lafs%2Ftahoe-lafs.git node.py: remove unused old_log() function --- diff --git a/src/allmydata/node.py b/src/allmydata/node.py index 72f7588b..0ba5899c 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -9,7 +9,7 @@ from foolscap import Tub, eventual import foolscap.logging.log from allmydata import get_package_versions, get_package_versions_string from allmydata.util import log -from allmydata.util import fileutil, iputil, observer, humanreadable +from allmydata.util import fileutil, iputil, observer from allmydata.util.assertutil import precondition from foolscap.logging import app_versions @@ -315,20 +315,6 @@ class Node(service.MultiService): def log(self, *args, **kwargs): return log.msg(*args, **kwargs) - def old_log(self, msg, src="", args=(), **kw): - if src: - logsrc = src - else: - logsrc = self.logSource - if args: - try: - msg = msg % tuple(map(humanreadable.hr, args)) - except TypeError, e: - msg = "ERROR: output string '%s' contained invalid %% expansion, error: %s, args: %s\n" % (`msg`, e, `args`) - msg = self.short_nodeid + ": " + humanreadable.hr(msg) - return twlog.callWithContext({"system":logsrc}, - twlog.msg, msg, **kw) - def _setup_tub(self, local_addresses): # we can't get a dynamically-assigned portnum until our Tub is # running, which means after startService.