Fixes the stackoverflow when detecting ripple directories due to the logging.