From 5db1e0084af108b76f7f971eec9c9ed663a2d732 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Fri, 2 Sep 2022 09:58:11 +0200 Subject: [PATCH 1/4] Turn off tracing #3084 Some debug tracing was left turned on and committed by mistake Reference: https://github.com/nexB/scancode-toolkit/issues/3084 Reported-by: Soim @soimkim Signed-off-by: Philippe Ombredanne --- src/packagedcode/win_reg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packagedcode/win_reg.py b/src/packagedcode/win_reg.py index 4d4d7c82462..e4e59cd3b1e 100644 --- a/src/packagedcode/win_reg.py +++ b/src/packagedcode/win_reg.py @@ -28,7 +28,7 @@ # TODO: check for chocolatey # TODO: Windows appstore -TRACE = True +TRACE = False def logger_debug(*args): From a761da7528fbc6a1469b02e15265124ecd7685bf Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Fri, 2 Sep 2022 09:58:46 +0200 Subject: [PATCH 2/4] Do not print JS map file content #3084 Some debug print was left and committed by mistake Reference: https://github.com/nexB/scancode-toolkit/issues/3084 Reported-by: Soim @soimkim Signed-off-by: Philippe Ombredanne --- src/textcode/analysis.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/textcode/analysis.py b/src/textcode/analysis.py index 6e5d55e54cd..98a33b7705f 100644 --- a/src/textcode/analysis.py +++ b/src/textcode/analysis.py @@ -239,7 +239,6 @@ def js_map_sources_lines(location): entry = replace_verbatim_cr_lf_chars(entry) for line in entry.splitlines(): l = remove_verbatim_cr_lf_tab_chars(line) - print(repr(l), l) yield l From 6d3f47f4f437a4250203a460e00bdcc41cebef40 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Fri, 2 Sep 2022 11:29:04 +0200 Subject: [PATCH 3/4] Turn off tracing #3084 Some debug tracing was left turned on and committed by mistake Reference: https://github.com/nexB/scancode-toolkit/issues/3084 Reported-by: Soim @soimkim Signed-off-by: Philippe Ombredanne --- conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index 67bb4f8675b..211c130e1e8 100644 --- a/conftest.py +++ b/conftest.py @@ -20,7 +20,7 @@ import pytest -TRACE = True +TRACE = False """ A pytest conftest.py for scancode-toolkit to control which tests to run and when. From 9a98ac27ddd244d2d3cbd918c17a858f344445a1 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Fri, 2 Sep 2022 11:31:33 +0200 Subject: [PATCH 4/4] Update changelog and bump release #3084 Reported-by: Soim @soimkim Signed-off-by: Philippe Ombredanne --- CHANGELOG.rst | 10 ++++++++++ setup-mini.cfg | 2 +- setup.cfg | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index aec83a786fb..b28287c2a85 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -32,6 +32,16 @@ License detection: + +v31.1.1 - 2022-09-02 +---------------------------------- + +This is a minor release with a bug fix. + +- Do not display tracing/debug outputs at runtime + + + v31.1.0 - 2022-08-29 ---------------------------------- diff --git a/setup-mini.cfg b/setup-mini.cfg index d58491251bb..67bb8ec4f4c 100644 --- a/setup-mini.cfg +++ b/setup-mini.cfg @@ -1,6 +1,6 @@ [metadata] name = scancode-toolkit-mini -version = 31.1.0 +version = 31.1.1 license = Apache-2.0 AND CC-BY-4.0 AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft # description must be on ONE line https://github.com/pypa/setuptools/issues/1390 diff --git a/setup.cfg b/setup.cfg index 5460c66fc2f..09066b9f237 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = scancode-toolkit -version = 31.1.0 +version = 31.1.1 license = Apache-2.0 AND CC-BY-4.0 AND LicenseRef-scancode-other-permissive AND LicenseRef-scancode-other-copyleft # description must be on ONE line https://github.com/pypa/setuptools/issues/1390