Use exact Path comparison instead of endswith to detect existing errors.log handlers, avoiding false positives from similarly-named log files.