From 393ff86c94122cf8f5e13bb4a0ff5480c79bff54 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Fri, 26 Feb 2021 21:23:26 -0600 Subject: [PATCH] Announce output destination in mock syslog server --- testsuite/lib/exec/minlogd.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testsuite/lib/exec/minlogd.pl b/testsuite/lib/exec/minlogd.pl index 610cb6c..b122958 100755 --- a/testsuite/lib/exec/minlogd.pl +++ b/testsuite/lib/exec/minlogd.pl @@ -52,9 +52,11 @@ unless (-S $SocketName) { if (defined $OutputFileName) { open LoggerOutput, ($AppendFlag ? '>>' : '>'), $OutputFileName or die "open output file $OutputFileName: $!"; + print "minlogd: writing log messages to $OutputFileName\n"; } else { die "minlogd: append makes no sense without an output file\n" if $AppendFlag; open LoggerOutput, '>&', STDOUT or die "dup stdout: $!"; + print "minlogd: writing log messages to stdout\n"; } sub fd_nonblock { -- 2.25.1