Be able to set/disable default log handler logging.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/*
|
||||
$Id: logging.c,v 1.4 2003/11/04 04:45:24 rocky Exp $
|
||||
$Id: logging.c,v 1.5 2003/11/09 13:57:51 rocky Exp $
|
||||
|
||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +31,7 @@
|
||||
#include "cdio_assert.h"
|
||||
|
||||
|
||||
static const char _rcsid[] = "$Id: logging.c,v 1.4 2003/11/04 04:45:24 rocky Exp $";
|
||||
static const char _rcsid[] = "$Id: logging.c,v 1.5 2003/11/09 13:57:51 rocky Exp $";
|
||||
|
||||
cdio_log_level_t cdio_loglevel_default = CDIO_LOG_WARN;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
$Id: cd-info.c,v 1.44 2003/11/05 04:12:58 rocky Exp $
|
||||
$Id: cd-info.c,v 1.45 2003/11/09 13:57:51 rocky Exp $
|
||||
|
||||
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
|
||||
Copyright (C) 1996,1997,1998 Gerd Knorr <kraxel@bytesex.org>
|
||||
@@ -755,6 +755,18 @@ main(int argc, const char *argv[])
|
||||
|
||||
print_version(program_name, VERSION, opts.no_header, opts.version_only);
|
||||
|
||||
if (opts.debug_level == 3) {
|
||||
cdio_loglevel_default = CDIO_LOG_INFO;
|
||||
#ifdef HAVE_VCDINFO
|
||||
vcd_loglevel_default = VCD_LOG_INFO;
|
||||
#endif
|
||||
} else if (opts.debug_level >= 4) {
|
||||
cdio_loglevel_default = CDIO_LOG_DEBUG;
|
||||
#ifdef HAVE_VCDINFO
|
||||
vcd_loglevel_default = VCD_LOG_DEBUG;
|
||||
#endif
|
||||
}
|
||||
|
||||
switch (opts.source_image) {
|
||||
case IMAGE_UNKNOWN:
|
||||
case IMAGE_AUTO:
|
||||
|
||||
Reference in New Issue
Block a user