summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-11-15 13:45:50 +0000
committerphintuka <phintuka>2008-11-15 13:45:50 +0000
commitb9dbe8f1eef5a8d3bd67e484ce49840700e81845 (patch)
tree72855334587d245483584aeae2a33991cab790c6
parent474b4e8acf587ffe300b903da974b32da6bedd24 (diff)
downloadxineliboutput-b9dbe8f1eef5a8d3bd67e484ce49840700e81845.tar.gz
xineliboutput-b9dbe8f1eef5a8d3bd67e484ce49840700e81845.tar.bz2
Added verbose debug logging for all control messages
(can be enabled with command-line option -vv or --verbose --verbose)
-rw-r--r--xine_input_vdr.c12
1 files 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("<control> %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");
}
}