Ignore:
Timestamp:
Aug 5, 2017, 11:23:04 PM (7 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
18c1925
Parents:
7a240b5
git-author:
Jason Gross <jgross@mit.edu> (07/12/11 15:23:27)
git-committer:
Jason Gross <jgross@mit.edu> (08/05/17 23:23:04)
Message:
Moved outgoing zephyr error logging to perl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Message.pm

    r978a164 rcd6521f  
    210210sub log_base_path {
    211211    return BarnOwl::getvar('logpath');
     212}
     213
     214=head2 log_outgoing_error MESSAGE
     215
     216Returns the string that should be logged if there is an error sending
     217an outgoing message.
     218
     219=cut
     220
     221sub log_outgoing_error {
     222    my ($m) = @_;
     223    my $recipient = $m->pretty_recipient;
     224    my $body = $m->body;
     225    chomp $body;
     226    return "ERROR (BarnOwl): $recipient\n$body\n\n";
    212227}
    213228
Note: See TracChangeset for help on using the changeset viewer.