summaryrefslogtreecommitdiff
path: root/gst/gstinfo.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-06-03 01:49:51 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-06-05 12:53:15 +0100
commit66fc4c8ba26d7907cf895b3d1f85ba5f00dfd9f8 (patch)
tree78ca7c5a814eabfc63c81a823084e1cb7f55a5be /gst/gstinfo.c
parent2d5b1bbc1d8954701493c1bc4918b977f16e7997 (diff)
downloadgstreamer-66fc4c8ba26d7907cf895b3d1f85ba5f00dfd9f8.tar.gz
info: add new TRACE log level and move refcounting there from LOG level
This makes it possible to easily get a *:5 debug log without all the refcounting noise, and drastically reduces the number of lines output for a normal log (46m to 28m for a 20min video). The full log including refcounting information can still be gotten using *:7. Fixes #620460.
Diffstat (limited to 'gst/gstinfo.c')
-rw-r--r--gst/gstinfo.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/gstinfo.c b/gst/gstinfo.c
index 6858b83765..02a2c94e10 100644
--- a/gst/gstinfo.c
+++ b/gst/gstinfo.c
@@ -830,8 +830,8 @@ static const guchar levelcolormap[GST_LEVEL_COUNT] = {
FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE,
/* GST_LEVEL_FIXME */
FOREGROUND_RED | FOREGROUND_GREEN,
- /* placeholder for log level 7 */
- 0,
+ /* GST_LEVEL_TRACE */
+ FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE,
/* placeholder for log level 8 */
0,
/* GST_LEVEL_MEMDUMP */
@@ -852,7 +852,7 @@ static const gchar *levelcolormap[GST_LEVEL_COUNT] = {
"\033[36m", /* GST_LEVEL_DEBUG */
"\033[37m", /* GST_LEVEL_LOG */
"\033[33;01m", /* GST_LEVEL_FIXME */
- "\033[37m", /* placeholder for log level 7 */
+ "\033[37m", /* GST_LEVEL_TRACE */
"\033[37m", /* placeholder for log level 8 */
"\033[37m" /* GST_LEVEL_MEMDUMP */
};
@@ -992,6 +992,8 @@ gst_debug_level_get_name (GstDebugLevel level)
return "LOG ";
case GST_LEVEL_FIXME:
return "FIXME ";
+ case GST_LEVEL_TRACE:
+ return "TRACE ";
case GST_LEVEL_MEMDUMP:
return "MEMDUMP";
default: