aboutsummaryrefslogtreecommitdiff
path: root/src/common/torlog.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-25 12:12:35 +0200
committerNick Mathewson <nickm@torproject.org>2013-11-18 10:43:15 -0500
commitce8ae49c9437086a886af631d3f618ec338637d0 (patch)
treeb3b41a6ac2544c83ca7a8c6d4bb040cb3c4c37f1 /src/common/torlog.h
parentbd8ad674b913582b6f8e5b85ac722e14598d681b (diff)
downloadtor-ce8ae49c9437086a886af631d3f618ec338637d0.tar
tor-ce8ae49c9437086a886af631d3f618ec338637d0.tar.gz
Improve new assertion message logging
Don't report that a failure happened in the assertion_failed function just because we logged it from there.
Diffstat (limited to 'src/common/torlog.h')
-rw-r--r--src/common/torlog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/torlog.h b/src/common/torlog.h
index 903237940..d210c8b24 100644
--- a/src/common/torlog.h
+++ b/src/common/torlog.h
@@ -102,6 +102,9 @@
/** This log message is not safe to send to a callback-based logger
* immediately. Used as a flag, not a log domain. */
#define LD_NOCB (1u<<31)
+/** This log message should not include a function name, even if it otherwise
+ * would. Used as a flag, not a log domain. */
+#define LD_NOFUNCNAME (1u<<30)
/** Mask of zero or more log domains, OR'd together. */
typedef uint32_t log_domain_mask_t;