summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-08-14 15:22:40 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-08-14 15:22:40 +0000
commit12a7844c3f9c584fc084d381f1f81d4dbe303b8b (patch)
treeb3bf7eb8575fcf20a21da6b744fe232cc7dc3fe9 /src
parent6f83d1d62ce9a8fa56db8f7966eae216d538adf4 (diff)
downloadbcfg2-12a7844c3f9c584fc084d381f1f81d4dbe303b8b.tar.gz
bcfg2-12a7844c3f9c584fc084d381f1f81d4dbe303b8b.tar.bz2
bcfg2-12a7844c3f9c584fc084d381f1f81d4dbe303b8b.zip
Remove xml printing support from logging
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2065 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r--src/lib/Logging.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Logging.py b/src/lib/Logging.py
index f898696f9..b91fdd035 100644
--- a/src/lib/Logging.py
+++ b/src/lib/Logging.py
@@ -1,7 +1,7 @@
'''Bcfg2 logging support'''
__revision__ = '$Revision$'
-import copy, fcntl, logging, logging.handlers, lxml.etree, math, socket, struct, sys, termios, types
+import copy, fcntl, logging, logging.handlers, math, socket, struct, sys, termios, types
def print_attributes(attrib):
''' Add the attributes for an element'''
@@ -73,8 +73,8 @@ class TermiosFormatter(logging.Formatter):
for colNum in range(columns)] if idx < len(record.msg)]
format = (len(indices) * (" %%-%ds " % columnWidth))
returns.append(format % tuple([record.msg[idx] for idx in indices]))
- elif type(record.msg) == lxml.etree._Element:
- returns.append(str(xml_print(record.msg)))
+ #elif type(record.msg) == lxml.etree._Element:
+ # returns.append(str(xml_print(record.msg)))
else:
returns.append(str(record.msg))
if record.exc_info: