Refresh the view of the log group

def do_refresh(self,args):
        """Refresh the view of the log group"""
        # prints all the groups: pprint(AwsConnectionFactory.getLogClient().describe_log_groups())

        response = AwsConnectionFactory.getLogClient().describe_log_groups(logGroupNamePrefix=self.stackResource.physical_resource_id)
        if not 'logGroups' in response:
            raise Exception("Expected log group description to have logGroups entry. Got {}".format(response))

        # pprint(response)
        descriptions = [x for x in response['logGroups'] if x['logGroupName'] == self.stackResource.physical_resource_id]
        if not descriptions:
            raise Exception("Could not find log group {} in list {}".format(self.stackResource.physical_resource_id,response['logGroups']))

        self.description = descriptions[0]

        self.logStreams = self.loadLogStreams()
        print "== logStream"
        maxIndex = "{}".format(len(self.logStreams)+1)
        print "maxIndex:{}".format(maxIndex)
        frm = "  {{0:{}d}}: {{1}}".format(len(maxIndex))
        print frm

        index = 0
        for logStream in self.logStreams:
            print frm.format(index,logStream['logStreamName'])
            index += 1