Here's the little patch:

~Line 332 in filed/backup.c:

-----
   default:
      Jmsg(jcr, M_NOTSAVED, 0,  _("     Unknown file type %d; not saved:
%s\n"), ff_pkt->type, ff_pkt->fname);
      jcr->Errors++;
      return 1;
   }

   Dmsg1(130, "bfiled: sending %s to stored\n", ff_pkt->fname);
  +Jmsg(jcr, M_SAVED, 0, _("            Backing up file: %s\n"), ff_pkt->fname);

   /* Digests and encryption are only useful if there's file data */

-----

On Tue, 2007-05-22 at 15:19 -0400, Brian A. Seklecki wrote:
> All:
> 
> The reason my logging configurations were acting sporadically is because
> there is no call ever to a Jmsg() with 'type' M_SAVED as defined in
> src/lib/message.h
> 
> Presumably it belongs in save_file() somewhere.  I'll play around with
> it.
> 
> email message attachment, "Forwarded message - bacula-fd logging"
> > -------- Forwarded Message --------
> > From: Brian A. Seklecki <[EMAIL PROTECTED]>
> > To: bacula-users@lists.sourceforge.net
> > Subject: bacula-fd logging
> > Date: Wed, 16 May 2007 10:10:46 -0400
> > 
> > I'm trying to log all saved (and skipped) files on full/incr jobs. My
> > msg resource:
> > 
> > Messages {
> >   Name = Standard
> >   append = "/var/log/bacula-job-debug.log" = all
> > }
> > 
> > -d9999 output:
> > 
> > bacula-fd: parse_conf.c:303 store_msgs
> > dest=/var/log/bacula-job-debug.log:
> > 
> > bacula-fd: message.c:333 add new d=809b418 msgtype=7 destcode=4
> > where=/var/log/bacula-job-debug.log mailcmd=*None*
> > 
> > bacula-fd: message.c:313 Add to existing d=809b418 msgtype=2 destcode=4
> > where=/var/log/bacula-job-debug.log
> > 
> > bacula-fd: message.c:313 Add to existing d=809b418 msgtype=3 destcode=4
> > where=/var/log/bacula-job-debug.log
> > 
> > 
> > The file:
> > 
> > # tail -F /var/log/bacula-job-debug.log 
> > 
> > 16-May 09:32 soundwave-fd: Fatal Error because: Bacula interrupted by
> > signal 18: Keyboard stop
> > 
> > 
> > 
> > Start a job:
> > 
> > soundwave-fd: find_one.c:210 File ----: /home/seklecki/.gftp/gftp.log
> > soundwave-fd: backup.c:246 FT_REG saving: /home/seklecki/.gftp/gftp.log
> > soundwave-fd: backup.c:331 bfiled: sending /home/seklecki/.gftp/gftp.log
> > to stored
> > soundwave-fd: backup.c:1017 File /home/seklecki/.gftp/gftp.log
> > soundwave-fd: backup.c:1062 >stored: attr len=99: 402
> > 3 /home/seklecki/.gftp/gftp.log
> > soundwave-fd: bfile.c:778 open file /home/seklecki/.gftp/gftp.log
> > 
> > Absolutely no indication that the message should be routed anywhere.
> > But I am getting some messages (critical errors)
> > to /var/log/bacula-job-debug.log.
> > 
> > I've tried a variety of method methods (syslog, file, append, stdout)
> > and a variety of levels (all, saved, skipped, etc.).  Nothing.
> > 
> > At one point this morning it _was_ working, to syslog, but only skipped
> > messages: 
> > 
> > 
> > 2007 May 16 08:48:50 EDT soundwave [bacula-fd][daemon][err] bacula-fd:
> > soundwave-fd:      Unchanged file
> > skipped: 
> > /home/seklecki/.evolution/mail/imap/fooserver:993/folders/INBOX/subfolders/Periodic/subfolders/2006-05/303.HEADER
> > 
> > I'll re-read the manual and browse message.c to see if I'm missing
> > anything obvious.  This seems pretty straightforward though.
> > 
> > This is 2.0.3 on FreeBSD 6.2/i386.
> > 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________ Bacula-users mailing list 
> Bacula-users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 
Brian A. Seklecki <[EMAIL PROTECTED]>
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to