Sh1Fu / Netlab

A simple python script for working with Netlab API
2 stars 0 forks source link

Think about log file format #4

Closed Sh1Fu closed 2 years ago

Sh1Fu commented 2 years ago

Problem: Current .log files are too large. I think that logging.DEBUG level useless in our situation. I can write only INFO and ERROR level on it

Solve: change this part of code in DownloadImages and TakePrice classes:

logging.basicConfig(filename=self.LOG_FILE, level=logging.DEBUG,
                            format='%(asctime)s.%(msecs)03d %(levelname)s %(module)s - %(funcName)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
logging.debug("[+] Check requests with images..\n")