Now I'm not sure why it ever worked at all since 5.2.0. Seems to be a regression in commit 1b101a0e047069cfb90f653fff9a60b8f4e2a808
I've built exchange-fd.dll against HEAD with the following patch applied. You can download it at http://www.meadowcourt.org/private/exchange-fd.dll. If your testing works (please send debug output again so I can verify if it was just luck that it worked) I'll submit the patch formally. James diff --git a/bacula/src/win32/filed/plugins/exchange-fd.c b/bacula/src/win32/filed/plugins/exchange-fd.c index f5f80b4..bbd1b9a 100644 --- a/bacula/src/win32/filed/plugins/exchange-fd.c +++ b/bacula/src/win32/filed/plugins/exchange-fd.c @@ -272,17 +272,13 @@ static bRC handlePluginEvent(bpContext *ctx, bEvent *event, void *value) } break; case bEventLevel: - if (!context->plugin_active) { - break; - } + /* We don't know if the job is active here yet */ intval = (intptr_t)value; _DebugMessage(100, "JobLevel=%c %d\n", intval, intval); context->job_level = intval; break; case bEventSince: - if (!context->plugin_active) { - break; - } + /* We don't know if the job is active here yet */ intval = (intptr_t)value; _DebugMessage(100, "since=%d\n", intval); context->job_since = (time_t)value; > -----Original Message----- > From: Guido Falsi [mailto:m...@madpilot.net] > Sent: Monday, 7 May 2012 8:13 PM > To: James Harper > Subject: Re: [Bacula-users] Exchange plugin always truncating logs (when it > should not) > > On Sat, May 05, 2012 at 04:48:26AM +0000, James Harper wrote: > > > > That's really strange. The code to do this is pretty straightforward... at > > job > init it does this: > > BTW I did check that code and was surpised too, Unluckily here I don't have > the tools to compile windows binaries, so I could not try tweaking it to see > the outcome. Under unix I usally try some haking before asking :P > > > Could you please try doing: > > > > set debug level=200 trace=1 > > > > for your fd, run a backup, and then email me the resulting trace file (in > > the > fd working directory I think). I'm wondering if something has changed and > the callback ordering is different or something. > > I am attaching two traces. > > First one (as name states) was with the 5.2.6 FD and did truncate logs(I'm > also > attaching the relevant messages). > > I also made a very simple test. I replaces the plugins/exchange-fd.dll file > with > the one from 5.2.5 and ran the incremental again(after restarting the FD > service). > > I'm attaching that trace too, and in this test the FD worked as expected and > did not truncate logs. > > I hope this information can help you! > > If anything else is needed just ask. > > Thanks again! > > -- > Guido Falsi <m...@madpilot.net> ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel