Skip to content

Commit

Permalink
cosmetic output fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Feb 21, 2024
1 parent 6ed0e2c commit 01bf80d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions semantic-conventions/src/opentelemetry/semconv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ def check_compatibility(semconv, args, parser):
compatibility_checker = CompatibilityChecker(semconv, prev_semconv)
problems = compatibility_checker.check()

if problems:
if any(problems):
print(f"Found {len(problems)} compatibility issues:")
for problem in problems:
print(f"\t {problem}")
problems_str = [str(p) for p in problems]
for problem in sorted(problems_str):
print(f"\t{problem}")

if not args.ignore_warnings or (
args.ignore_warnings and any(problem.critical for problem in problems)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, signal: str, name: str, message: str, critical: bool = True):
self.critical = critical

def __str__(self):
return f"\t {self.signal} '{self.name}': {self.message}"
return f"{self.signal} '{self.name}' {self.message}"

def __eq__(self, other):
if isinstance(other, self.__class__):
Expand Down

0 comments on commit 01bf80d

Please sign in to comment.