Tweaked logging
authorNeil Smith <neil.git@njae.me.uk>
Thu, 30 Nov 2017 21:44:16 +0000 (21:44 +0000)
committerNeil Smith <neil.git@njae.me.uk>
Thu, 30 Nov 2017 21:44:16 +0000 (21:44 +0000)
cipherbreak.py

index a70e83512dddb09123b7937dec9a1e72af5f7cbd..de605d34d67b49e214cab7d280b1eb19cc76b8bf 100644 (file)
@@ -379,7 +379,7 @@ def simulated_annealing_break_worker(message, plain_alphabet, cipher_alphabet,
             logger.debug('Simulated annealing: iteration {}, temperature {}, '
                 'current alphabet {}, current_fitness {}, '
                 'best_plaintext {}'.format(i, temperature, current_alphabet, 
-                current_fitness, best_plaintext[:50]))
+                current_fitness, plaintext[:50]))
         temperature = max(temperature - dt, 0.001)
 
     return best_alphabet, best_fitness # current_alphabet, current_fitness