Mercurial > cgi-bin > hgweb.cgi > tincan
changeset 66:f33cb3e93473 draft
Fix bad log invocations.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 12 Jul 2019 20:27:52 -0700 |
parents | d59811b95a62 |
children | b5e72129ef72 |
files | tincan.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 ]: