From b9dbe8f1eef5a8d3bd67e484ce49840700e81845 Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 15 Nov 2008 13:45:50 +0000 Subject: Added verbose debug logging for all control messages (can be enabled with command-line option -vv or --verbose --verbose) --- xine_input_vdr.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 4fc309c9..a6eb3e99 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.192 2008-11-11 19:04:02 rofafor Exp $ + * $Id: xine_input_vdr.c,v 1.193 2008-11-15 13:45:50 phintuka Exp $ * */ @@ -3411,6 +3411,10 @@ static int vdr_plugin_parse_control(vdr_input_plugin_if_t *this_if, const char * if(NULL != (pt = strstr(cmd, "\r\n"))) *((char*)pt) = 0; /* auts */ + /* very verbose logging ? */ + if (iSysLogLevel>3) + LOGDBG(" %s",cmd); + if(!strncasecmp(cmd, "OSDCMD", 6)) { err = handle_control_osdcmd(this); @@ -6710,7 +6714,11 @@ static void *init_class (xine_t *xine, void *data) iSysLogLevel = xine->verbosity + 1; LOGMSG("detected verbose logging xine->verbosity=%d, setting log level to %d:%s", xine->verbosity, iSysLogLevel, - iSysLogLevel==2?"INFO":"DEBUG"); + (iSysLogLevel < 1) ? "NONE" : + (iSysLogLevel < 2) ? "ERRORS" : + (iSysLogLevel < 3) ? "INFO" : + (iSysLogLevel < 4) ? "DEBUG" : + "VERBOSE DEBUG"); } } -- cgit v1.2.3