log login state as debug

This commit is contained in:
Tobias Brunner 2018-01-13 18:10:04 +01:00
parent 77ba501082
commit 86fd6bca18
2 changed files with 3 additions and 2 deletions

View File

@ -50,10 +50,10 @@ class Lodur:
self.browser.open(self.url + '?modul=16')
page = self.browser.get_current_page()
if page.find(alt='LOGOUT'):
self.logger.info('Logged in')
self.logger.debug('Logged in')
return True
else:
self.logger.info('Not logged in')
self.logger.debug('Not logged in')
return False
def einsatzprotokoll(self, f_id, pdf_data, webdav_client):

View File

@ -5,6 +5,7 @@ from pathlib import Path
from library.pdf_extract import PDFHandling
PATH = '/tmp/pylokid'
PATH = '/home/tobru/tmp/pylokid/Einsatzausdruck_FW'
logging.basicConfig(
level=logging.INFO,