From: Neil Smith Date: Thu, 30 Nov 2017 21:44:16 +0000 (+0000) Subject: Tweaked logging X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=91077b7eb1e7d7caa28732487638a37140d66bf7;p=cipher-tools.git Tweaked logging --- diff --git a/cipherbreak.py b/cipherbreak.py index a70e835..de605d3 100644 --- a/cipherbreak.py +++ b/cipherbreak.py @@ -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