Did I find the right examples for you? yes no

All Samples(162)  |  Call(162)  |  Derive(0)  |  Import(0)
Write a failure to the log.

The C{_stuff} and C{_why} parameters use an underscore prefix to lessen
the chance of colliding with a keyword argument the application wishes
to pass.  It is intended that they be supplied with arguments passed
positionally, not by keyword.

@param _stuff: The failure to log.  If C{_stuff} is C{None} a new
    L{Failure} will be created from the current exception state.  If
    C{_stuff} is an C{Exception} instance it will be wrapped in a(more...)

        def err(_stuff=None, _why=None, **kw):
    """
    Write a failure to the log.

    The C{_stuff} and C{_why} parameters use an underscore prefix to lessen
    the chance of colliding with a keyword argument the application wishes
    to pass.  It is intended that they be supplied with arguments passed
    positionally, not by keyword.

    @param _stuff: The failure to log.  If C{_stuff} is C{None} a new
        L{Failure} will be created from the current exception state.  If
        C{_stuff} is an C{Exception} instance it will be wrapped in a
        L{Failure}.
    @type _stuff: C{NoneType}, C{Exception}, or L{Failure}.

    @param _why: The source of this failure.  This will be logged along with
        C{_stuff} and should describe the context in which the failure
        occurred.
    @type _why: C{str}
    """
    if _stuff is None:
        _stuff = failure.Failure()
    if isinstance(_stuff, failure.Failure):
        msg(failure=_stuff, why=_why, isError=1, **kw)
    elif isinstance(_stuff, Exception):
        msg(failure=failure.Failure(_stuff), why=_why, isError=1, **kw)
    else:
        msg(repr(_stuff), why=_why, isError=1, **kw)
        


src/z/o/zope.app.twisted-3.5.0/src/twisted/application/app.py   zope.app.twisted(Download)
        traceback.print_exc(file=log.logfile)
        log.msg(s)
        log.deferr()
        sys.exit('\n' + s + '\n')
 
        traceback.print_exc(file=log.logfile)
        log.msg(s)
        log.deferr()
        sys.exit('\n' + s + '\n')
 
        traceback.print_exc(file=log.logfile)
        log.msg(s)
        log.deferr()
        sys.exit('\n' + s + '\n')
    return application

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/internet/win32eventreactor.py   hortonworks-sandbox(Download)
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:
                fd.connectionLost(failure.Failure(closed))
            except:
                log.deferr()
        elif closed is None:
            return 1
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/twisted/internet/win32eventreactor.py   oh-mainline(Download)
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:
                fd.connectionLost(failure.Failure(closed))
            except:
                log.deferr()
        elif closed is None:
            return 1
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:

src/z/o/zope.app.twisted-3.5.0/src/twisted/internet/win32eventreactor.py   zope.app.twisted(Download)
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:
                fd.connectionLost(failure.Failure(closed))
            except:
                log.deferr()
        elif closed is None:
            return 1
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:

src/m/y/mythbox-HEAD/resources/lib/twisted/twisted/internet/win32eventreactor.py   mythbox(Download)
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:
                fd.connectionLost(failure.Failure(closed))
            except:
                log.deferr()
        elif closed is None:
            return 1
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:

src/s/u/SubliminalCollaborator-HEAD/libs/twisted/internet/win32eventreactor.py   SubliminalCollaborator(Download)
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:
                fd.connectionLost(failure.Failure(closed))
            except:
                log.deferr()
        elif closed is None:
            return 1
        except:
            closed = sys.exc_info()[1]
            log.deferr()
        if closed:
            self._disconnectSelectable(fd, closed, action == 'doRead')

src/t/w/Twisted-13.2.0/twisted/internet/win32eventreactor.py   Twisted(Download)
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:
                fd.connectionLost(failure.Failure(closed))
            except:
                log.deferr()
        elif closed is None:
            return 1
        except:
            closed = sys.exc_info()[1]
            log.deferr()
        if closed:
            self._disconnectSelectable(fd, closed, action == 'doRead')

src/z/o/zope.app.twisted-3.5.0/src/twisted/scripts/_twistd_unix.py   zope.app.twisted(Download)
        else:
            log.msg("Failed to unlink PID file:")
            log.deferr()
    except:
        log.msg("Failed to unlink PID file:")
        log.deferr()

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/application/app.py   hortonworks-sandbox(Download)
        traceback.print_exc(file=log.logfile)
        log.msg(s)
        log.deferr()
        sys.exit('\n' + s + '\n')
    return application

src/u/n/UnitScan-HEAD/twisted/internet/win32eventreactor.py   UnitScan(Download)
        except:
            closed = sys.exc_info()[1]
            log.deferr()
 
        if closed:
                fd.connectionLost(failure.Failure(closed))
            except:
                log.deferr()
        elif closed is None:
            return 1
        except:
            closed = sys.exc_info()[1]
            log.deferr()
        if closed:
            self._disconnectSelectable(fd, closed, action == 'doRead')

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next