def retrieveLogs(self, execution, localLogDestination): """ Retrieve client specific logs for the given execution. The logs are to be stored in the directory pointed to by localLogDestination. @param execution The execution for which to retrieve logs. @param localLogDestination A string that is the path to a local directory in which the logs are to be stored. """ client.retrieveLogs(self, execution, localLogDestination)
def retrieveLogs(self, execution, localLogDestination): """ Retrieve client specific logs for the given execution. The logs are to be stored in the directory pointed to by localLogDestination. @param execution The execution for which to retrieve logs. @param localLogDestination A string that is the path to a local directory in which the logs are to be stored. """ if self.getExecutionLogDir(execution): execution.host.getFile( '{0}/log.log'.format( self.getExecutionLogDir(execution) ), os.path.join( localLogDestination, 'log.log' ), reuseConnection = execution.getRunnerConnection() ) client.retrieveLogs(self, execution, localLogDestination)
def retrieveLogs(self, execution, localLogDestination): """ Retrieve client specific logs for the given execution. The logs are to be stored in the directory pointed to by localLogDestination. @param execution The execution for which to retrieve logs. @param localLogDestination A string that is the path to a local directory in which the logs are to be stored. """ if not os.path.exists( localLogDestination ) or not os.path.isdir( localLogDestination ): raise Exception( "Insane localLogDestination {0}".format( localLogDestination ) ) client.retrieveLogs(self, execution, localLogDestination)
def retrieveLogs(self, execution, localLogDestination): """ Retrieve client specific logs for the given execution. The logs are to be stored in the directory pointed to by localLogDestination. @param execution The execution for which to retrieve logs. @param localLogDestination A string that is the path to a local directory in which the logs are to be stored. """ # TODO: Implement this in order to get your logs out. The parent implementation will take care of cpu.log in case # profiling was requested. Example: # # execution.host.getFile( '{0}/log.log'.format( self.getExecutionLogDir( execution ) ), # os.path.join( localLogDestination, 'log.log' ), reuseConnection = execution.getRunnerConnection() ) # client.retrieveLogs(self, execution, localLogDestination) # # The use of the execution.getRunnerConnection() connection prevents errors with multi-threading. # # This assumes you have no logs of your own: client.retrieveLogs(self, execution, localLogDestination)