Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/Config.h

Issue 29323611: Issue #1234, #2058 - Rewrite log facility, improving thread implementation
Patch Set: rebase to current tip Created Jan. 5, 2016, 2:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/Config.h
===================================================================
--- a/src/plugin/Config.h
+++ b/src/plugin/Config.h
@@ -28,7 +28,6 @@
#define ENABLE_DEBUG_RESULT
#define ENABLE_DEBUG_RESULT_IGNORED
-#define ENABLE_DEBUG_SPLIT_FILE
#else
#undef ENABLE_DEBUG_INFO
#endif
@@ -37,8 +36,6 @@
#undef ENABLE_DEBUG_INFO
#endif
-#undef ENABLE_DEBUG_SELFTEST
-
#define DEBUG_FUNC CPluginDebug::Debug
#if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_GENERAL)
@@ -84,18 +81,17 @@
#endif
#if (defined ENABLE_DEBUG_INFO && defined ENABLE_DEBUG_ERROR)
-#define DEBUG_EXCEPTION(x) CPluginDebug::DebugException(x)
-#define DEBUG_ERROR_CODE(err, x) CPluginDebug::DebugErrorCode(err, x);
-#define DEBUG_ERROR_CODE_EX(err, x, process, thread) CPluginDebug::DebugErrorCode(err, x, process, thread);
+#define DEBUG_EXCEPTION(x) CPluginDebug::DebugException(x, Trace::Location())
+#define DEBUG_ERROR_CODE(err, x) CPluginDebug::DebugErrorCode(err, x, Trace::Location());
+#define DEBUG_ERROR_LOG(err, id, subid, description) Trace::ErrorCode(err, description, Trace::Location(id, subid))
+#define DEBUG_SYSTEM_EXCEPTION(ex, id, subid, description) Trace::SystemException(ex, description, Trace::Location(id, subid))
#else
#define DEBUG_EXCEPTION(x)
#define DEBUG_ERROR_CODE(err, x)
-#define DEBUG_ERROR_CODE_EX(err, x, process, thread)
+#define DEBUG_ERROR_LOG(err, id, subid, description)
+#define DEBUG_SYSTEM_EXCEPTION(ex, id, subid, description)
#endif
-#define DEBUG_ERROR_LOG(err, id, subid, description) LogQueue::PostPluginError(err, id, subid, description);
-#define DEBUG_SYSTEM_EXCEPTION(ex, id, subid, description) CPluginDebug::DebugSystemException(ex, id, subid, description)
-#define DEBUG_SELFTEST(x)
// ----------------------------------------------------------------------------
// Miscellaneous

Powered by Google App Engine
This is Rietveld