Results 1 to 2 of 2

Thread: Disabling debugging in Amanda

  1. #1

    Default Disabling debugging in Amanda

    First, I can't build amanda if I

    ./configure ... --without-debugging

    I tracked it down to a missing macro in common-src/amanda.h and a missing declaration in restore-src/amidxtaped.c. The following patches below worked for me.

    Second, it would be good if amanda was built with debugging compiled in, but run with debugging off (unless there was a problem). The doc'n for amanda.conf in [url][/url] (and the corresponding page for amanda-client.conf) describes several debug_XXX options that looked like they might do the trick, but, alas!, they don't work when I tried. Is this work-in-progress?

    I suggest that there be some kind of master switch that turns debug on/off plus individual over-rides per module.


    --- common-src/amanda.h-debug 2006-10-31 13:35:45.000000000 +0000
    +++ common-src/amanda.h 2006-10-31 13:35:58.000000000 +0000
    @@ -428,6 +428,7 @@
    #else /* }{ */
    # define dbopen(a)
    # define dbreopen(a,b)
    +# define dbrename(a,b)
    # define dbclose()
    # define dbprintf(p)
    # define dbfd() (-1)
    --- restore-src/amidxtaped.c-debug 2006-10-31 13:36:56.000000000 +0000
    +++ restore-src/amidxtaped.c 2006-10-31 13:37:44.000000000 +0000
    @@ -245,6 +245,9 @@
    char *conf_tapetype;
    tapetype_t *tape;
    char *line;
    +#ifndef DEBUG_CODE
    + int i;

    safe_fd(DATA_FD_OFFSET, 4);

  2. #2
    Join Date
    Nov 2005


    Thanks for the patch.

    But you should not use '--without-debugging', many error message are printed only in the debug file, if you don't have them, you will never be able to find the problem if amanda fail.
    The 'debug_*' config option will be in amanda-2.5.2, and they will be use to control the level of debugging, not to completely remove them.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts