fixed logs and requirements

This commit is contained in:
queukat 2024-09-09 23:49:51 +03:00
parent 3f13d9bf1a
commit 74f0f13de4
3 changed files with 13 additions and 5 deletions

View file

@ -8,7 +8,7 @@ from selenium import webdriver
log_file = "app_log.log"
logging.basicConfig(
level=logging.DEBUG,
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
handlers=[
logging.FileHandler(log_file, mode='a', encoding='utf-8'),
@ -22,7 +22,7 @@ file_handler = logging.FileHandler(log_file, mode='a', encoding='utf-8')
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
logger.setLevel(logging.DEBUG)
logger.setLevel(logging.INFO)
chromeProfilePath = os.path.join(os.getcwd(), "chrome_profile", "linkedin_profile")