mirror of https://github.com/tLDP/python-tldp
be louder about the signature finding (or not)
This commit is contained in:
parent
17772e948c
commit
369d53eb35
|
@ -49,11 +49,11 @@ class SignatureChecker(object):
|
|||
for sig in cls.signatures:
|
||||
try:
|
||||
sindex = buf.index(sig.lower())
|
||||
logger.debug("Found signature %r in %s at %s; doctype %s.",
|
||||
logger.debug("YES FOUND signature %r in %s at %s; doctype %s.",
|
||||
sig, f.name, sindex, cls)
|
||||
return sindex
|
||||
except ValueError:
|
||||
logger.debug("Signature %r not found in %s for type %s",
|
||||
logger.debug("not found signature %r in %s for type %s",
|
||||
sig, f.name, cls.__name__)
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue