[omapd] r166 committed - Add option to debug plugin operations instead of using ShowClientOps d...

0 views
Skip to first unread message

om...@googlecode.com

unread,
Nov 6, 2012, 5:54:15 PM11/6/12
to omapd...@googlegroups.com
Revision: 166
Author: sma...@gmail.com
Date: Tue Nov 6 14:54:00 2012
Log: Add option to debug plugin operations instead of using
ShowClientOps debug flag.
http://code.google.com/p/omapd/source/detail?r=166

Modified:
/trunk/main.cpp
/trunk/omapd.conf
/trunk/omapdconfig.cpp
/trunk/omapdconfig.h

=======================================
--- /trunk/main.cpp Fri Jul 13 00:08:59 2012
+++ /trunk/main.cpp Tue Nov 6 14:54:00 2012
@@ -136,7 +136,7 @@
qDebug() << "main: could not load MapGraph Plugin";
exit(1);
}
- if
(omapdConfig->valueFor("debug_level").value<OmapdConfig::IfmapDebugOptions>().testFlag(OmapdConfig::ShowClientOps))
+ if
(omapdConfig->valueFor("debug_level").value<OmapdConfig::IfmapDebugOptions>().testFlag(OmapdConfig::ShowPluginOperations))
mapGraph->setDebug(true);
else
mapGraph->setDebug(false);
=======================================
--- /trunk/omapd.conf Sun Oct 28 22:55:19 2012
+++ /trunk/omapd.conf Tue Nov 6 14:54:00 2012
@@ -28,7 +28,8 @@
ShowXMLFilterStatements = 0x0040,
ShowMAPGraphAfterChange = 0x0080,
ShowRawSocketData = 0x0100,
- ShowSearchAlgorithm = 0x200
+ ShowSearchAlgorithm = 0x200,
+ ShowPluginOperations = 0x400
-->
<!-- debug_level is a OR combination of the above hex flags. Do the
math! -->
<!-- <debug_level> default is 0x0000 (no debugging) -->
=======================================
--- /trunk/omapdconfig.cpp Sun Oct 28 22:55:19 2012
+++ /trunk/omapdconfig.cpp Tue Nov 6 14:54:00 2012
@@ -47,6 +47,7 @@
if (dbgValue & OmapdConfig::ShowMAPGraphAfterChange) debug |=
OmapdConfig::ShowMAPGraphAfterChange;
if (dbgValue & OmapdConfig::ShowRawSocketData) debug |=
OmapdConfig::ShowRawSocketData;
if (dbgValue & OmapdConfig::ShowSearchAlgorithm) debug |=
OmapdConfig::ShowSearchAlgorithm;
+ if (dbgValue & OmapdConfig::ShowPluginOperations) debug |=
OmapdConfig::ShowPluginOperations;

return debug;
}
@@ -65,6 +66,7 @@
if (debug.testFlag(OmapdConfig::ShowMAPGraphAfterChange)) str
+= "ShowMAPGraphAfterChange | ";
if (debug.testFlag(OmapdConfig::ShowRawSocketData)) str
+= "ShowRawSocketData | ";
if (debug.testFlag(OmapdConfig::ShowSearchAlgorithm)) str
+= "ShowSearchAlgorithm | ";
+ if (debug.testFlag(OmapdConfig::ShowPluginOperations)) str
+= "ShowPluginOperations | ";

if (! str.isEmpty()) {
str = str.left(str.size()-3);
=======================================
--- /trunk/omapdconfig.h Sun Oct 28 22:33:08 2012
+++ /trunk/omapdconfig.h Tue Nov 6 14:54:00 2012
@@ -41,7 +41,8 @@
ShowXMLFilterStatements = 0x0040,
ShowMAPGraphAfterChange = 0x0080,
ShowRawSocketData = 0x0100,
- ShowSearchAlgorithm = 0x0200
+ ShowSearchAlgorithm = 0x0200,
+ ShowPluginOperations = 0x0400
};
Q_DECLARE_FLAGS(IfmapDebugOptions, IfmapDebug);
static IfmapDebugOptions debugOptions(unsigned int dbgValue);
Reply all
Reply to author
Forward
0 new messages