Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 361 by DeonWu: Exception: Automatic console logging has already been disabled
http://code.google.com/p/robotframework/issues/detail?id=361 C:\>pybot --version Robot Framework 2.1 (Python 2.5.2 on win32) In robot 2.1, the robot will raise a exeption "Automatic console logging has already been disabled", if the robot.run is called more than one times in one python process. The function is used by many unittest of IpaMML. I think the problem is caused the console logger have not recovered when the LOGGER is closed. Following is trace stack of exception in IpaMml unittest. ====================================================================== ERROR: test_start_stop_pet_tester (test_start_stop_pet_tester.Test_start_stop_pe t_tester) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\USERS\_work\workspace_pydev\IpaMml\IpaUnitTest\RemoteShell\resources\ PET\test_start_stop_pet_tester.py", line 21, in test_start_stop_pet_tester log=os.path.join(base_dir,'test_start_stop_pet_tester_log.html')) File "C:\USERS\programs\Python25\Lib\site-packages\robot\__init__.py", line 88 , in run settings['MonitorColors']) File "C:\USERS\programs\Python25\Lib\site-packages\robot\output\logger.py", li ne 61, in register_console_logger self.disable_automatic_console_logger() File "C:\USERS\programs\Python25\Lib\site-packages\robot\output\logger.py", li ne 48, in disable_automatic_console_logger raise TypeError('Automatic console logging has already been disabled') TypeError: Automatic console logging has already been disabled -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings
