<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def debug(self, msg, *args, **kwargs):
 """ Log a message with DEBUG level. Automatically includes stack info unless it is specifically not included. """

        kwargs.setdefault('inc_stackinfo', True)
        self.log(DEBUG, msg, args, **kwargs)