From ff6ad473268bd4aa04ab9e81ae49e6704c58bca4 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Fri, 5 Jan 2024 08:55:50 -0800 Subject: [PATCH] The -DEBUG option no longer also writes a .LOG file This was almost never needed and left a lot of files to clean up. --- CHANGES.md | 3 +++ lib/Perl/Tidy.pm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 2678697c..5e8a8c12 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -105,6 +105,9 @@ emit an else block when two elsif blocks were separated by a hanging side comment (a very rare situation). + - The -DEBUG option no longer automatically also writes a .LOG file. + Use --show-options if the .LOG file is needed. + ## 2023 09 12 - Fix for git #124: remove a syntax error check which could cause diff --git a/lib/Perl/Tidy.pm b/lib/Perl/Tidy.pm index 8f731311..350d1001 100644 --- a/lib/Perl/Tidy.pm +++ b/lib/Perl/Tidy.pm @@ -3292,7 +3292,7 @@ sub make_logfile_header { $msg .= "Configuration and command line parameters for this run:\n"; $msg .= "$options_string\n"; - if ( $rOpts->{'DEBUG'} || $rOpts->{'show-options'} ) { + if ( $rOpts->{'show-options'} ) { $rOpts->{'logfile'} = 1; # force logfile to be saved $msg .= "Final parameter set for this run\n"; $msg .= "------------------------------------\n"; -- 2.39.5