Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Aug 25, 2023
1 parent 21ee141 commit 2f1ea20
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ape/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ def format(self, record):

path = Path(record.pathname)
found = False
if path.glob("*ape_*"):
for part in path.parts:
if part.startswith("ape-"):
record.plugin = f" ({part})"
found = True
break
for part in path.parts:
if part.startswith("ape-"):
record.plugin = f" ({part})"
found = True
break

if not found:
# Likely from a REPL or Ape Core.
Expand Down

0 comments on commit 2f1ea20

Please sign in to comment.