mirror of https://github.com/tLDP/python-tldp
decreasing verbosity level on debugging logging
This commit is contained in:
parent
b047b22470
commit
41bf2ef9c1
|
@ -23,7 +23,7 @@ def makefh(thing):
|
||||||
def listDoctypes():
|
def listDoctypes():
|
||||||
knowndoctypes = list()
|
knowndoctypes = list()
|
||||||
for name, member in inspect.getmembers(doctypes, inspect.isclass):
|
for name, member in inspect.getmembers(doctypes, inspect.isclass):
|
||||||
logger.info("Located class %s (%r).", name, member)
|
logger.debug("Located class %s (%r).", name, member)
|
||||||
knowndoctypes.append(member)
|
knowndoctypes.append(member)
|
||||||
logger.info("Capable of handling %s document classes.", len(knowndoctypes))
|
logger.info("Capable of handling %s document classes.", len(knowndoctypes))
|
||||||
return knowndoctypes
|
return knowndoctypes
|
||||||
|
|
|
@ -26,7 +26,6 @@ class SourceDir(object):
|
||||||
self.docs = list()
|
self.docs = list()
|
||||||
if not os.path.exists(dirname):
|
if not os.path.exists(dirname):
|
||||||
raise OSError("[Errno 2] No such file or directory: " + dirname)
|
raise OSError("[Errno 2] No such file or directory: " + dirname)
|
||||||
logger.info("Time to go for an enumeration stroll in %s", dirname)
|
|
||||||
self.enumerateDocuments()
|
self.enumerateDocuments()
|
||||||
|
|
||||||
def enumerateDocuments(self):
|
def enumerateDocuments(self):
|
||||||
|
@ -56,7 +55,7 @@ class SourceDocument(object):
|
||||||
if not os.path.exists(self.filename):
|
if not os.path.exists(self.filename):
|
||||||
raise OSError("Missing source document: " + self.filename)
|
raise OSError("Missing source document: " + self.filename)
|
||||||
|
|
||||||
logger.info("Found existing %s", self.filename)
|
logger.debug("Found existing %s", self.filename)
|
||||||
self.dirname, self.basename = os.path.split(self.filename)
|
self.dirname, self.basename = os.path.split(self.filename)
|
||||||
self.stem, self.ext = os.path.splitext(self.basename)
|
self.stem, self.ext = os.path.splitext(self.basename)
|
||||||
self.stat = os.stat(self.filename)
|
self.stat = os.stat(self.filename)
|
||||||
|
|
Loading…
Reference in New Issue