From: Steve Hancock Date: Fri, 5 Jan 2024 16:55:50 +0000 (-0800) Subject: The -DEBUG option no longer also writes a .LOG file X-Git-Tag: 20230912.12~7 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ff6ad473268bd4aa04ab9e81ae49e6704c58bca4;p=perltidy.git The -DEBUG option no longer also writes a .LOG file This was almost never needed and left a lot of files to clean up. --- 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";