Fixed compilation error in LogDetector