From 5f0070345ed047f61e5d7c225f294df10103b1ab Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Wed, 24 Mar 2021 17:04:32 -0500 Subject: [PATCH] Use special tag for log messages in testing mode --- upload-ftp-v1.2.pl | 2 ++ 1 file changed, 2 insertions(+) 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' -- 2.25.1