diff --git a/presidio-analyzer/presidio_analyzer/pattern_recognizer.py b/presidio-analyzer/presidio_analyzer/pattern_recognizer.py index a092da922..698293481 100644 --- a/presidio-analyzer/presidio_analyzer/pattern_recognizer.py +++ b/presidio-analyzer/presidio_analyzer/pattern_recognizer.py @@ -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: