[tor-commits] [vidalia/alpha] Output plugin engine debug messages to the terminal
chiiph at torproject.org
chiiph at torproject.org
Sat Jul 21 19:17:47 UTC 2012
commit da3d7566c412084360c884950e6c27500da4d544
Author: Tomás Touceda <chiiph at torproject.org>
Date: Sat Jul 21 15:51:11 2012 -0300
Output plugin engine debug messages to the terminal
---
changes/pluginEngineImprovements | 1 +
src/vidalia/plugin/DebugDialog.cpp | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/changes/pluginEngineImprovements b/changes/pluginEngineImprovements
index 552792a..ca75311 100644
--- a/changes/pluginEngineImprovements
+++ b/changes/pluginEngineImprovements
@@ -2,3 +2,4 @@
o VidaliaTab prototype for plugins has been migrated to a full QWidget
derived object and an automatically generated extension.
o Provide a way to add icons to a plugin's menu item.
+ o Output plugins engine debug messages to the terminal.
diff --git a/src/vidalia/plugin/DebugDialog.cpp b/src/vidalia/plugin/DebugDialog.cpp
index a6105c4..6967bea 100644
--- a/src/vidalia/plugin/DebugDialog.cpp
+++ b/src/vidalia/plugin/DebugDialog.cpp
@@ -15,6 +15,7 @@
*/
#include "DebugDialog.h"
+#include "Vidalia.h"
QStringList DebugDialog::outputBuffer;
QStringList DebugDialog::syntaxBuffer;
@@ -46,18 +47,21 @@ void
DebugDialog::outputDebug(const QString &msg)
{
outputBuffer << msg;
+ vDebug("[PluginEngine - debug] %1").arg(msg);
}
void
DebugDialog::syntaxDebug(const QString &msg)
{
syntaxBuffer << msg;
+ vDebug("[PluginEngine - syntax error] %1").arg(msg);
}
void
DebugDialog::exceptDebug(const QString &msg)
{
exceptBuffer << msg;
+ vDebug("[PluginEngine - exception] %1").arg(msg);
}
void
More information about the tor-commits
mailing list