def pydevd_log(level, *args):
    """ levels are:
        0 most serious warnings/errors
        1 warnings/significant events
        2 informational trace
    """
    if level <= DebugInfoHolder.DEBUG_TRACE_LEVEL:
        #yes, we can have errors printing if the console of the program has been finished (and we're still trying to print something)
        try:
            sys.stderr.write('%s\n' % (args,))
        except:
            pass
 levels are:
        0 most serious warnings/errors
        1 warnings/significant events
        2 informational trace
    
debugger/src/_pydevd_bundle/pydevd_comm.py