Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 30, 2024
1 parent 86a783c commit 7cc4ee0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def analyze_logs(log_content):
python_version = None
issues_found = False

# Updated patterns to match the log format
# Simplified patterns to match the log format exactly
id_pattern = re.compile(r'^ID: (.+)')
version_id_pattern = re.compile(r'^VERSION_ID: (.+)')
version_codename_pattern = re.compile(r'^VERSION_CODENAME: (.+)')
Expand All @@ -67,16 +67,15 @@ def analyze_logs(log_content):

for line in log_lines:
line = line.strip() # Remove leading/trailing spaces

print(f"Processing line: {line}") # Debugging output

if "--------ENVIRONMENT OUTPUT--------" in line:
if in_environment_output:
break # Stop capturing after the end marker
in_environment_output = True
continue

if in_environment_output:
print(f"Processing line: {line}") # Debugging output

if os_id is None and id_pattern.search(line):
os_id = id_pattern.search(line).group(1)
print(f"Captured ID: {os_id}") # Debugging output
Expand Down

0 comments on commit 7cc4ee0

Please sign in to comment.