Skip to content

Commit

Permalink
Use logging.debug instead of print in parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
firepol committed Jun 7, 2019
1 parent 72387e9 commit 17874e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sepa/parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

from lxml import etree
from .messages import sepa_messages

Expand Down Expand Up @@ -34,7 +36,7 @@ def parse_tree(structure, tag):

for child in tag:
if child.tag not in structure:
print('Unknown tag: "' + child.tag + '", parent: "' + tag.tag + '"')
logging.debug('Unknown tag: "' + child.tag + '", parent: "' + tag.tag + '"')
else:
substructure = structure[child.tag]

Expand Down

0 comments on commit 17874e3

Please sign in to comment.