Commit 8cc22ee3 authored by Etienne Nadji's avatar Etienne Nadji
Browse files

Cleaner debug logs

	modifié :         common/xml.py
	modifié :         pageobjects.py
parent 94fc3cad
......@@ -477,7 +477,7 @@ def all_undocumented_to_xml(
msg = msg.strip()
undocstr = "Undoc. XML attributes in {} : ".format(msg)
undocstr = "Undoc. XML attributes: {}: ".format(msg)
if logger:
logger.debug(
......
......@@ -692,7 +692,7 @@ class PageObject(xmlc.PyScribusElement):
try:
xml, undoc_attribs = xmlc.all_undocumented_to_xml(
xml, self.undocumented, True,
self.ptype + " frame '" + self.name + "'",
self.ptype + " '{}'".format(self.name.strip()),
# FIXME This disable debug for path, copath attributes
# ["path", "copath"]
logger=logs.getLogger()
......@@ -1257,7 +1257,7 @@ class TableObject(PageObject):
try:
xml, undoc_attribs = xmlc.all_undocumented_to_xml(
xml, self.undocumented, True,
self.ptype + " frame '" + self.name + "'",
self.ptype + " '{}'".format(self.name.strip()),
logger=logs.getLogger()
)
......@@ -1449,7 +1449,7 @@ class GroupObject(PageObject):
try:
xml, undoc_attribs = xmlc.all_undocumented_to_xml(
xml, self.undocumented, True,
self.ptype + " frame '" + self.name + "'",
self.ptype + " '{}'".format(self.name.strip()),
logger=logs.getLogger()
)
......@@ -1800,7 +1800,7 @@ class TextObject(PageObject):
try:
xml, undoc_attribs = xmlc.all_undocumented_to_xml(
xml, self.undocumented, True,
self.ptype + " frame '" + self.name + "'",
self.ptype + " '{}'".format(self.name.strip()),
logger=logs.getLogger()
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment