Hello,

The debug code sent looks fine to me as it is, and it goes quite well with the 
debug code that is already there.  I have added it to version 3.0.0.

Thanks,

Kern

On Thursday 16 April 2009 13:14:06 Chandranshu . wrote:
> Hi
>
> I am sending the mysql.c again as the previous mail bounced from the
> bacula-devel list.
>
> Regards
> Chandranshu
>
> On Thu, Apr 16, 2009 at 4:15 PM, Kern Sibbald <[email protected]> wrote:
> > On Thursday 16 April 2009 11:26:24 Kjetil Torgrim Homme wrote:
> > > [Kern Sibbald]:
> > > >> [Chandranshu]:
> > > >> > [I] modified the code in src/cats/mysql.c to print the error
> > > >> > message returned by mysql_error(). Then, I compiled and ran the
> > > >> > code to see the most dubious error in my DBA career:
> > > >> > Error 2002 (HY000): Can't connect to local MySQL server through
> > > >> > socket '/var/lib/mysql/mysql.sock' (2)
> > > >
> > > > Yes, I would like to see the code before making any definitive
> > > > statement.  Generally any amount of debug code is appreciated,
> > > > though we would probably put something volumous or something a bit
> > > > unlikely on a debug of 400 or greater.  Debug of 100 is a *very*
> > > > small number for Bacula.  Virtually nothing is less than 100 except
> > > > debug code for sockets which is at 50 and possibly some debug code a
> > > > developer was using and forgot to increase to more than 100 ...
> > >
> > > IMHO, fatal errors like the above should be reported even with debug
> > > level 0.
> >
> > The problem *is* reported, the question is to strike a balance between
> > reporting problem details and possibly adding a million lines of code
> > that diagnose every potential problem that could come up.  In any case,
> > as I said,
> > I wait to see the code before making any definitive statement.
> >
> > Regards,
> >
> > Kern
> >
> >
> > -------------------------------------------------------------------------
> >----- Stay on top of everything new and different, both inside and
> > around Java (TM) technology - register by April 22, and save
> > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
> > 300 plus technical and hands-on sessions. Register today.
> > Use priority code J9JMT32. http://p.sf.net/sfu/p
> > _______________________________________________
> > Bacula-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/bacula-users



------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to