def testConnection(self):
        config = {'host': str(self.hostEdt.text()),
                  'port': int(self.portEdt.value()),
                  'user': str(self.userEdt.text()),
                  'passwd': str(self.passwdEdt.text()),
                  'db': str(self.databaseEdt.text())}
        try:
            vistrails.db.services.io.test_db_connection(config)
            show_info('Vistrails',"Connection succeeded!")
            
        except Exception, e:
            debug.critical('An error has occurred', e)
Starts redirection of `stdout`
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/open_db_window.py/QConnectionDBSetupWindow.testConnection--crossover with--dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/pypetlogging.py/StdoutToLogger.start