mirror of
https://github.com/Zygo/bees.git
synced 2025-06-17 01:56:16 +02:00
bees: make exceptions less prominent in log output
Introduce a mechanism to suppress exceptions which do not produce a full stack trace for common known cases where a loop should be aborted. Use this mechanism to suppress the infamous "FIXME" exception. Reduce the log level to at most NOTICE, and in some cases DEBUG. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
@ -183,10 +183,13 @@ class BeesTracer {
|
||||
BeesTracer *m_next_tracer = 0;
|
||||
|
||||
thread_local static BeesTracer *tl_next_tracer;
|
||||
thread_local static bool tl_silent;
|
||||
public:
|
||||
BeesTracer(function<void()> f);
|
||||
BeesTracer(function<void()> f, bool silent = false);
|
||||
~BeesTracer();
|
||||
static void trace_now();
|
||||
static bool get_silent();
|
||||
static void set_silent();
|
||||
};
|
||||
|
||||
class BeesNote {
|
||||
|
Reference in New Issue
Block a user