Ignore:
Timestamp:
Sep 9, 2007, 1:00:49 AM (13 years ago)
Author:
Bruno Cornec
Message:

remove g_loglevel and replaced with mr_conf->log_level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-fork.c

    r1609 r1625  
    77#include "mr_str.h"
    88#include "mr_gettext.h"
     9#include "mr_conf.h"
    910
    1011#include "mondostructures.h"
     
    2324extern char *MONDO_LOGFILE;
    2425pid_t g_buffer_pid = 0;
    25 
     26extern struct mr_ar_conf *mr_conf = NULL;
    2627
    2728/**
     
    178179 * Run a program and log its output (stdout and stderr) to the logfile.
    179180 * @param program The program to run. Passed to the shell, so you can use pipes etc.
    180  * @param debug_level If @p g_loglevel is higher than this, do not log the output.
     181 * @param debug_level If @p log_level is higher than this, do not log the output.
    181182 * @return The exit code of @p program (depends on the command, but 0 almost always indicates success).
    182183 */
     
    205206    }
    206207
    207     if (debug_level <= g_loglevel) {
     208    if (debug_level <= mr_conf->log_level) {
    208209        log_if_success = TRUE;
    209210        log_if_failure = TRUE;
Note: See TracChangeset for help on using the changeset viewer.