From 666c9b4935627ccf0d7b0fd5a69e4c910d6fb281 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Tue, 8 Nov 2016 11:00:23 +0000 Subject: [PATCH] Cleaned logger initialisation --- cipherbreak.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cipherbreak.py b/cipherbreak.py index 02e63c5..4f443c4 100644 --- a/cipherbreak.py +++ b/cipherbreak.py @@ -13,11 +13,11 @@ from multiprocessing import Pool import matplotlib.pyplot as plt +logging.basicConfig(filename="cipher.log", level=logging.INFO) logger = logging.getLogger(__name__) -logger.addHandler(logging.FileHandler('cipher.log')) -logger.setLevel(logging.WARNING) -#logger.setLevel(logging.INFO) -#logger.setLevel(logging.DEBUG) +# logger.setLevel(logging.WARNING) +# logger.setLevel(logging.INFO) +# logger.setLevel(logging.DEBUG) from cipher import * from language_models import * -- 2.34.1