Changeset 1625 in MondoRescue for branches/stable/mondo/src/common


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

remove g_loglevel and replaced with mr_conf->log_level

Location:
branches/stable/mondo/src/common
Files:
3 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;
  • branches/stable/mondo/src/common/libmondo-tools-EXT.h

    r1183 r1625  
    1515#endif
    1616extern int some_basic_system_sanity_checks(void);
    17 
    18 
    19 extern int g_loglevel;
    2017
    2118
  • branches/stable/mondo/src/common/libmondo-tools.c

    r1609 r1625  
    6464char *g_tmpfs_mountpt = NULL;
    6565char *g_magicdev_command = NULL;
    66 
    67 /**
    68  * The default maximum level to log messages at or below.
    69  */
    70 int g_loglevel = DEFAULT_DEBUG_LEVEL;
    7166
    7267/* @} - end of globalGroup */
Note: See TracChangeset for help on using the changeset viewer.