def _logErrorResponse(err, connection_id, provider_nsa, action):

    log.msg('Connection %s: Error during %s request to %s.' % (connection_id, action, provider_nsa), system=LOG_SYSTEM)
    log.msg('Connection %s: Error message: %s' % (connection_id, err.getErrorMessage()), system=LOG_SYSTEM)
    log.msg('Trace:', system=LOG_SYSTEM)
    err.printTraceback()

    return err
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/aggregator.py/_logErrorResponse/original