'Gets all the log paths from the database.
Currently only for testing purposes.
Parameters
jail : Jail
If specified, will only reutrn logs belonging to the jail.
Returns
set
Set of log paths.'

@commitandrollback
def getLogPaths(self, cur, jail=None):

    query = 'SELECT    path    FROM    logs'
    queryArgs = []
    if (jail is not None):
        query += '    WHERE    jail=?'
        queryArgs.append(jail.name)
    cur.execute(query, queryArgs)
    return set((row[0] for row in cur.fetchmany()))
