projects
/
cipher-training.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ccbcc17
)
Cleaned logger initialisation
author
Neil Smith
<neil.git@njae.me.uk>
Tue, 8 Nov 2016 11:00:23 +0000
(11:00 +0000)
committer
Neil Smith
<neil.git@njae.me.uk>
Tue, 8 Nov 2016 11:00:23 +0000
(11:00 +0000)
cipherbreak.py
patch
|
blob
|
history
diff --git
a/cipherbreak.py
b/cipherbreak.py
index 02e63c5ffd4a8f0b375e2144d2d8278c8d648fd6..4f443c419e8d27cfb8746d8f52a262cf7d19bff2 100644
(file)
--- a/
cipherbreak.py
+++ b/
cipherbreak.py
@@
-13,11
+13,11
@@
from multiprocessing import Pool
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
+logging.basicConfig(filename="cipher.log", level=logging.INFO)
logger = logging.getLogger(__name__)
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 *
from cipher import *
from language_models import *