be louder about the signature finding (or not)

This commit is contained in:
Martin A. Brown 2016-03-02 23:51:27 -08:00
parent 17772e948c
commit 369d53eb35
1 changed files with 2 additions and 2 deletions

View File

@ -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