<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _log(txt, config):
 """ Log debug output if debug setting is on. Intended to be partial'd w/ config at top of functions. Meh. """

    if config.releases_debug:
        sys.stderr.write(str(txt) + "\n")
        sys.stderr.flush()