Log processing cycles on verbosity level 2

This commit is contained in:
Robbert van der Helm
2020-12-01 22:51:10 +01:00
parent d02ce3117a
commit 7f7da50282
4 changed files with 30 additions and 0 deletions
+13
View File
@@ -55,6 +55,9 @@ class Logger {
* The same as the above but without filtering out any events. This is
* very chatty but it can be crucial for debugging plugin-specific
* problems.
*
* This will also print print information about the audio processing
* callbacks, which can be useful for diagnosing misbehaving plugins.
*/
all_events = 2,
};
@@ -114,6 +117,16 @@ class Logger {
const EventResultPayload& payload,
const std::optional<EventResultPayload>& value_payload);
/**
* Log a message that should only be printed when the `verbosity` is set to
* `all_events`. This should only be used for simple primitive messages
* without any formatting since the actual check happens within this
* function.
*
* @param message The message to write.
*/
void log_trace(const std::string& message);
private:
/**
* Determine whether an event should be filtered based on the current