better debug
This commit is contained in:
@ -1381,27 +1381,6 @@ class SystemHealthMonitor:
|
|||||||
try:
|
try:
|
||||||
parts = fs_line.split()
|
parts = fs_line.split()
|
||||||
|
|
||||||
|
|
||||||
# Before pattern matching
|
|
||||||
logger.debug(f"=== Starting Path Exclusion Check ===")
|
|
||||||
logger.debug(f"Path to check: {parts[5]}")
|
|
||||||
logger.debug(f"Configured patterns: {self.CONFIG['EXCLUDED_PATTERNS']}")
|
|
||||||
|
|
||||||
# During pattern matching
|
|
||||||
for pattern in self.CONFIG['EXCLUDED_PATTERNS']:
|
|
||||||
match = re.match(pattern, parts[5])
|
|
||||||
logger.debug(f"Pattern: {pattern}")
|
|
||||||
logger.debug(f" └─ Match result: {bool(match)}")
|
|
||||||
logger.debug(f" └─ Raw match data: {match if match else 'None'}")
|
|
||||||
|
|
||||||
# After pattern matching
|
|
||||||
if any(re.match(pattern, parts[5]) for pattern in self.CONFIG['EXCLUDED_PATTERNS']):
|
|
||||||
logger.debug(f"EXCLUDED: {parts[5]} matched one or more patterns")
|
|
||||||
else:
|
|
||||||
logger.debug(f"INCLUDED: {parts[5]} did not match any patterns")
|
|
||||||
logger.debug("=== End Path Exclusion Check ===\n")
|
|
||||||
|
|
||||||
|
|
||||||
if len(parts) >= 6:
|
if len(parts) >= 6:
|
||||||
mountpoint = parts[5] # This is the actual path
|
mountpoint = parts[5] # This is the actual path
|
||||||
logger.debug(f"=== Starting Path Exclusion Check ===")
|
logger.debug(f"=== Starting Path Exclusion Check ===")
|
||||||
|
|||||||
Reference in New Issue
Block a user