diff --git a/lib/logging.c b/lib/logging.c index 3a1452ae..28cec0f7 100644 --- a/lib/logging.c +++ b/lib/logging.c @@ -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 + Copyright (C) 2003 Rocky Bernstein 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; diff --git a/src/cd-info.c b/src/cd-info.c index 20d8e67f..8cdb0454 100644 --- a/src/cd-info.c +++ b/src/cd-info.c @@ -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 Copyright (C) 1996,1997,1998 Gerd Knorr @@ -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: