Added logic to find CA certs for SSL connections (for frozen apps) and added some logging

This commit is contained in:
blitzmann
2015-10-24 23:32:15 -04:00
parent c04b7e0552
commit 167eb60fe3
4 changed files with 20 additions and 4 deletions

View File

@@ -94,6 +94,9 @@ def defPaths():
__createDirs(savePath)
if isFrozen():
os.environ["REQUESTS_CA_BUNDLE"] = os.path.join(pyfaPath, "cacert.pem")
format = '%(asctime)s %(name)-24s %(levelname)-8s %(message)s'
logging.basicConfig(format=format, level=logLevel)
handler = logging.handlers.RotatingFileHandler(os.path.join(savePath, "log.txt"), maxBytes=1000000, backupCount=3)