aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2022-09-06 16:48:17 -0700
committerGerald Combs <gerald@wireshark.org>2022-09-08 10:20:48 -0700
commit74ec0f08160054500f61c14d0646b4f2cdacfb81 (patch)
tree060599f3e5e5898dfd81498b3532395d695d6111 /wsutil
parent503c11034fba7e19aa451eed389b5fc1fc1c9690 (diff)
Qt+extcap: Make our capture error dialog less noisy.
Strip the timestamps and function names from extcap errors before displaying them in a dialog. This keeps us from spewing ``` Error by extcap pipe: ** (falcodump:24913) 15:08:20.263535 [falcodump WARNING] extcap/falcodump.cpp:593 -- main(): cloudtrail plugin error: failed to list objects: ExpiredToken: The provided token has expired. status code: 400, request id: M2PYJOT4JGVAA6B9, host id: +4V8Q+DGV+80Jd3fdc7tODyVdTRvepNgCD9zuvXeL7kzvp2oikaoi9CLMW+UKt/ aR1G2UXIqyQ8= ``` at the user. Check for warning messages and set our dialog type accordingly.
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/wslog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wsutil/wslog.c b/wsutil/wslog.c
index 5a24b5511b..a6482e6e7c 100644
--- a/wsutil/wslog.c
+++ b/wsutil/wslog.c
@@ -891,6 +891,7 @@ static void log_write_do_work(FILE *fp, bool use_color,
else if (file != NULL)
fprintf(fp, "%s ", file);
+ /* Any formatting changes here need to be synced with ui/capture.c:capture_input_closed. */
fputs("-- ", fp);
/* Function name */