From aad0aef7f5c4b2a321456832ae95df0250ac9274 Mon Sep 17 00:00:00 2001 From: TAHRI Ahmed R Date: Thu, 23 Sep 2021 17:13:48 +0000 Subject: [PATCH] :fire: Remove double logging entry for the same purpose (language/coherence) detection (#115) --- charset_normalizer/api.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/charset_normalizer/api.py b/charset_normalizer/api.py index 37795a4b..59070ace 100644 --- a/charset_normalizer/api.py +++ b/charset_normalizer/api.py @@ -413,13 +413,6 @@ def from_bytes( ) return CharsetMatches([results[encoding_iana]]) - if results[-1].languages: - logger.info( - "Using %s code page we detected the following languages: %s", - encoding_iana, - results[encoding_iana]._languages, - ) - if len(results) == 0: if fallback_u8 or fallback_ascii or fallback_specified: logger.warning(