Commit 18fd196b authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor tweak to email; all errors go to pgerrors so that massive

email does not land in my inbox.
parent 5ed60c85
#!/usr/bin/perl -w
#
# Copyright (c) 2008-2017 University of Utah and the Flux Group.
# Copyright (c) 2008-2018 University of Utah and the Flux Group.
#
# {{{GENIPUBLIC-LICENSE
#
......@@ -830,11 +830,11 @@ LogAbort()
# and skip the message.
#
if ((-s $logfile->filename() || $iserror) && !$noanything) {
my $to = ($rpcerror ? $TBOPS : ($MAINSITE ? $PGERRORS : $TBLOGS));
my $to = ($MAINSITE ? $PGERRORS : $TBLOGS);
my $cc = ($MAINSITE ? undef : "CC: $PGERRORS");
SENDMAIL($to, "protogeni-wrapper.pl", $message,
$TBOPS, $cc,
($mailsendlog || $rpcerror ? ($logfile->filename()) : undef));
($mailsendlog ? ($logfile->filename()) : undef));
$nostorelogs = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment