# HG changeset patch # User David Barts # Date 1562988472 25200 # Node ID f33cb3e934735239c7e73f856db0ff676c922f39 # Parent d59811b95a62576d2e89255975d708cf7bb4c6c0 Fix bad log invocations. diff -r d59811b95a62 -r f33cb3e93473 tincan.py --- a/tincan.py Thu Jul 04 08:52:15 2019 -0700 +++ b/tincan.py Fri Jul 12 20:27:52 2019 -0700 @@ -860,11 +860,11 @@ # Sanity checks if not self.urlroot.startswith("/"): self.errors = 1 - self.logger("urlroot not absolute: {0!r}".format(self.urlroot)) + self.logger.error("urlroot not absolute: %r", self.urlroot) return self if not os.path.isdir(self.fsroot): self.errors = 1 - self.logger("no such directory: {0!r}".format(self.fsroot)) + self.logger.error("no such directory: %r", self.fsroot) return self # Make any needed directories. Refuse to launch things that don't # contain WEB-INF, to prevent accidental launches of undesired @@ -872,7 +872,7 @@ winf = os.path.join(self.fsroot, _WINF) if not os.path.isdir(winf): self.errors = 1 - self.logger("no WEB-INF directory in {0!r}".format(self.fsroot)) + self.logger.error("no WEB-INF directory in %r", self.fsroot) return self lib = os.path.join(winf, "lib") for i in [ lib ]: