mirror of https://github.com/tLDP/python-tldp
make the sought text more obvious in logging output
This commit is contained in:
parent
20f01fff1c
commit
17ffc0434f
|
@ -49,11 +49,11 @@ class SignatureChecker(object):
|
|||
for sig in cls.signatures:
|
||||
try:
|
||||
sindex = buf.index(sig.lower())
|
||||
logger.debug("Found signature %s in %s at %s; doctype %s.",
|
||||
logger.debug("Found signature %r in %s at %s; doctype %s.",
|
||||
sig, f.name, sindex, cls)
|
||||
return sindex
|
||||
except ValueError:
|
||||
logger.debug("Signature %s not found in %s for type %s",
|
||||
logger.debug("Signature %r not found in %s for type %s",
|
||||
sig, f.name, cls.__name__)
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue