Changeset 9bfab40 for perl


Ignore:
Timestamp:
Aug 16, 2017, 12:53:41 PM (7 years ago)
Author:
Jason Gross <jasongross9@gmail.com>
Branches:
master
Children:
5093c6f
Parents:
ff528e6
git-author:
Jason Gross <jgross@mit.edu> (07/12/11 15:23:27)
git-committer:
Jason Gross <jasongross9@gmail.com> (08/16/17 12:53:41)
Message:
Moved outgoing zephyr error logging to perl
File:
1 edited

Legend:

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

    reea7bed4 r9bfab40  
    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.