From: Jacob Bachmeyer Date: Wed, 24 Mar 2021 22:04:32 +0000 (-0500) Subject: Use special tag for log messages in testing mode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5f0070345ed047f61e5d7c225f294df10103b1ab;p=gatekeeper.git Use special tag for log messages in testing mode --- diff --git a/upload-ftp-v1.2.pl b/upload-ftp-v1.2.pl index 7a3f122..49a8c45 100755 --- a/upload-ftp-v1.2.pl +++ b/upload-ftp-v1.2.pl @@ -275,6 +275,8 @@ if (IN_TEST_MODE) { # override the above for testing # verify configuration for mock syslog die "ftp-upload: test mode: TEST_SYSLOG_SOCKET not valid" unless $ENV{TEST_SYSLOG_SOCKET} && -S $ENV{TEST_SYSLOG_SOCKET} && -w _; + # override log message tag + $log_style = 'Test'; } else { # in production mode # ensure we are using the real gpgv open my $gpgv,'-|',GPGV_BIN, '--version'