Filterin the debug output

Boudewijn Rempt boud at valdyas.org
Tue Oct 23 12:22:34 BST 2007


On Tue, 23 Oct 2007, Boudewijn Rempt wrote:

> 
> Indeed. And making non-existing debug areas give no output by default would
> make sure people know when they are using them.

Something like

Index: kdebug.cpp
===================================================================
--- kdebug.cpp	(revision 728385)
+++ kdebug.cpp	(working copy)
@@ -314,7 +314,7 @@
         }
 
         KConfigGroup cg(config, QString::number(area));
-        int mode = cg.readEntry(key, 2);
+        int mode = cg.readEntry(key, 4);
         return OutputMode(mode);
     }
 

Should work, I guess.





More information about the kde-core-devel mailing list