Skip to content

Commit

Permalink
Tweak logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Sep 10, 2015
1 parent 4b856a0 commit aa18ca2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/message.c
Expand Up @@ -481,7 +481,6 @@ static BPIPE *open_mail_pipe(JCR *jcr, POOLMEM *&cmd, DEST *d)
} else {
Mmsg(cmd, "/usr/lib/sendmail -F BAREOS %s", d->where);
}
fflush(stdout);

if ((bpipe = open_bpipe(cmd, 120, "rw"))) {
/*
Expand All @@ -493,8 +492,9 @@ static BPIPE *open_mail_pipe(JCR *jcr, POOLMEM *&cmd, DEST *d)
} else {
berrno be;
delivery_error(_("open mail pipe %s failed: ERR=%s\n"),
cmd, be.bstrerror());
cmd, be.bstrerror());
}

return bpipe;
}

Expand Down Expand Up @@ -1096,13 +1096,14 @@ void dispatch_message(JCR *jcr, int type, utime_t mtime, char *msg)
fputs(msg, d->fd);
}
}
fflush(d->fd);
msgs->clear_in_use();
break;
case MD_DIRECTOR:
Dmsg1(850, "DIRECTOR for following msg: %s", msg);
if (jcr && jcr->dir_bsock && !jcr->dir_bsock->errors) {
jcr->dir_bsock->fsend("Jmsg Job=%s type=%d level=%lld %s",
jcr->Job, type, mtime, msg);
jcr->Job, type, mtime, msg);
} else {
Dmsg1(800, "no jcr for following msg: %s", msg);
}
Expand Down

0 comments on commit aa18ca2

Please sign in to comment.