From d9b82a4133ad2be1377c29ea24f37b8cc58ff6f5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 17 Apr 2019 07:07:05 -0400 Subject: Sendmail: Actually print info log messages as documented --- lib/Travelynx/Helper/Sendmail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Travelynx/Helper/Sendmail.pm b/lib/Travelynx/Helper/Sendmail.pm index 9f19e74..fa3c4fd 100644 --- a/lib/Travelynx/Helper/Sendmail.pm +++ b/lib/Travelynx/Helper/Sendmail.pm @@ -31,7 +31,7 @@ sub custom { if ( $self->{config}->{disabled} ) { # Do not send mail in dev mode - say "sendmail to ${to}: ${subject}\n\n${body}"; + $self->{log}->info("sendmail to ${to}: ${subject}\n\n${body}"); return 1; } -- cgit v1.2.3