Skip to content

Commit

Permalink
Fix regex match_time output (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewisplinghoff authored Dec 1, 2024
1 parent a21a17c commit 3d9cee9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions presidio-analyzer/presidio_analyzer/pattern_recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,9 @@ def __analyze_patterns(
matches = pattern.compiled_regex.finditer(text)
match_time = datetime.datetime.now() - match_start_time
logger.debug(
"--- match_time[%s]: %s.%s seconds",
"--- match_time[%s]: %.6f seconds",
pattern.name,
match_time.seconds,
match_time.microseconds,
match_time.total_seconds()
)

for match in matches:
Expand Down

0 comments on commit 3d9cee9

Please sign in to comment.