aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'rawshark.c')
-rw-r--r--rawshark.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/rawshark.c b/rawshark.c
index 471a89375c..1001930ddf 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -449,17 +449,13 @@ main(int argc, char *argv[])
setlocale(LC_ALL, "");
#endif
- g_set_prgname("rawshark");
-
/* Initialize log handler early so we can have proper logging during startup. */
- ws_log_init(NULL);
+ ws_log_init("rawshark", NULL);
cmdarg_err_init(rawshark_cmdarg_err, rawshark_cmdarg_err_cont);
- /* Command line options are parsed too late to configure logging, do it
- manually. */
- if (ws_log_parse_args(&argc, argv, cmdarg_err) != 0)
- return INVALID_OPTION;
+ /* Early logging command-line initialization. */
+ ws_log_parse_args(&argc, argv, vcmdarg_err, INVALID_OPTION);
/* Initialize the version information. */
ws_init_version_info("Rawshark (Wireshark)", NULL,