Ignore:
Timestamp:
Jan 7, 2014, 6:00:47 PM (8 years ago)
Author:
Jason Gross <jgross@mit.edu>
Children:
6e764aa
Parents:
e38cc20
git-author:
Jason Gross <jgross@mit.edu> (07/12/11 15:23:27)
git-committer:
Jason Gross <jgross@mit.edu> (01/07/14 18:00:47)
Message:
Moved outgoing zephyr error logging to perl
File:
1 edited

Legend:

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

    rdca6255 rf511c1e  
    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.