diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-16 20:32:07 +0100 |
---|---|---|
committer | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-18 10:43:39 +0100 |
commit | a6738d72a058a5cdb84b536cae63720f21b2bc8c (patch) | |
tree | 027163a7a6b948f5ccceae1326919640d47ae784 /capture | |
parent | 051a74378d3d3bd15710d9e2656d963555950fad (diff) |
wslog: Add support for inverted debug matches
The --log-debug and --log-noisy now accepts a '!' to invert the
match and disable the debug (noisy respectively) log level for
the listed domains.
Note this is different from --log-domains, that option
enables/disables the entire log domain itself, regardless of log
level.
Diffstat (limited to 'capture')
-rw-r--r-- | capture/capture_sync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture/capture_sync.c b/capture/capture_sync.c index 88af85b9e6..2ef8cdaf3a 100644 --- a/capture/capture_sync.c +++ b/capture/capture_sync.c @@ -1097,7 +1097,7 @@ sync_pipe_run_command(char* const argv[], gchar **data, gchar **primary_msg, int logging_enabled; /* check if logging is actually enabled, otherwise don't expend the CPU generating logging */ - logging_enabled = ws_log_level_is_active(LOG_LEVEL_INFO); + logging_enabled = ws_log_message_is_active(WS_LOG_DOMAIN, LOG_LEVEL_INFO); if (logging_enabled) { start_time = g_get_monotonic_time(); ws_info("sync_pipe_run_command() starts"); |