How to debug rulesets?

How can rulesets be debugged? Especially migration functions from old rule data.

To answer my own question:

import logging
logger = logging.getLogger(__name__)

and then to log with debug level somewhere in the code:

logger.debug("message")

And turn on debug logging in the global settings for the Web component of the User Interface.

3 Likes