Skip to content

Commit

Permalink
[bug] Logging invocation of sendmail is not disabled even if log_smtp…
Browse files Browse the repository at this point in the history
… parameter is "off".

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12478 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
  • Loading branch information
sikeda committed Nov 5, 2015
1 parent eb10d50 commit 512e400
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Sympa/Spindle/ProcessAutomatic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ use Sympa::List;
use Sympa::Log;
use Sympa::Mailer;
use Sympa::Report;
use Sympa::Tools::Data;

use base qw(Sympa::Spindle);

Expand Down Expand Up @@ -200,7 +201,8 @@ sub _twist {

# Enable SMTP logging if required.
Sympa::Mailer->instance->{log_smtp} = $main::options{'mail'}
|| Conf::get_robot_conf($robot, 'log_smtp');
|| Sympa::Tools::Data::smart_eq(
Conf::get_robot_conf($robot, 'log_smtp'), 'on');
# setting log_level using conf unless it is set by calling option
unless (defined $main::options{'log_level'}) {
$log->{level} = Conf::get_robot_conf($robot, 'log_level');
Expand Down

0 comments on commit 512e400

Please sign in to comment.