From 3fba711da99094ca38172a1369d401ef48bc0d49 Mon Sep 17 00:00:00 2001 From: Lucas Ficheux Date: Thu, 29 Aug 2019 16:48:30 +0200 Subject: [PATCH] [bnpcards] Added connection type logging at login The module now logs which type of connection (Manager or Cardholder) is logging in. It will be useful to find connections suitable for build tasks. --- modules/bnpcards/browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/bnpcards/browser.py b/modules/bnpcards/browser.py index 2098a68141..daea4939de 100644 --- a/modules/bnpcards/browser.py +++ b/modules/bnpcards/browser.py @@ -76,10 +76,14 @@ def do_login(self): if self.error.is_here() or self.page.is_error(): raise BrowserIncorrectPassword() if self.type == '2' and self.page.is_corporate(): + self.logger.info('Manager corporate connection') raise SiteSwitch('corporate') # ti corporate and ge corporate are not detected the same way .. if 'corporate' in self.page.url: + self.logger.info('Carholder corporate connection') self.is_corporate = True + else: + self.logger.info('Cardholder connection') def ti_card_go(self): if self.is_corporate: -- GitLab