capture text logged in integration tests to a file
Bug #1413805 reported by
Wu Hong Guang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Invalid
|
Undecided
|
Wu Wenxiang |
Bug Description
the unittest2 runner replaces sys.stdout/
To assign the 'current' sys.stdout to the handler
import sys
import unittest
import logging
logger = logging.getLogger()
logger.level = logging.DEBUG
class TestCase(
def Setup(self):
def Teardown()
tags: | added: integration-tests |
Changed in horizon: | |
assignee: | nobody → Wu Wenxiang (wu-wenxiang) |
Changed in horizon: | |
status: | New → Incomplete |
Changed in horizon: | |
status: | Incomplete → Invalid |
To post a comment you must log in.
Wu Hong, could you please elaborate the purpose of this change? For example here http:// logs.openstack. org/35/ 168935/ 15/check/ gate-horizon- dsvm-integratio n/5bd8a67/ logs/apache/ horizon_ error.txt. gz I can see all Apache logs. What's wrong with them?