mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-21 01:05:30 +00:00
Output errors from parser if found.
This commit is contained in:
parent
d378653983
commit
906fbef9c2
1 changed files with 5 additions and 0 deletions
|
|
@ -1034,6 +1034,11 @@ def parse_channels_only(source):
|
|||
if process:
|
||||
logger.debug(f"[parse_channels_only] Memory before cleanup: {process.memory_info().rss / 1024 / 1024:.2f} MB")
|
||||
try:
|
||||
# Output any errors in the channel_parser error log
|
||||
if 'channel_parser' in locals() and hasattr(channel_parser, 'error_log') and len(channel_parser.error_log) > 0:
|
||||
logger.debug(f"XML parser errors found ({len(channel_parser.error_log)} total):")
|
||||
for i, error in enumerate(channel_parser.error_log):
|
||||
logger.debug(f" Error {i+1}: {error}")
|
||||
if 'channel_parser' in locals():
|
||||
del channel_parser
|
||||
if 'elem' in locals():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue