Skip to content
Snippets Groups Projects
Commit aae0e264 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

"print" --> "app.logger.debug"

parent e1fef04f
Branches
Tags
No related merge requests found
......@@ -25,14 +25,14 @@ def validate():
xml_str = request.data
xml_tree = utils.parse(xml_str)
if xml_tree:
print('=== xml_tree OK ===')
app.logger.debug('=== xml_tree OK ===')
xsd_str = utils.get_xsd(config, xsd_version=xv, xml_str=xml_str)
if xsd_str:
ret = utils.validate(xml_str=xml_str, xsd_str=xsd_str)
else:
ret = utils.return_error(error='xsd content not readable')
else:
print('=== xml_tree ??? ===')
app.logger.debug('=== xml_tree invalid ===')
ret = utils.return_error(error='invalid xml data')
return utils.xml_response(ret)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment