aboutsummaryrefslogtreecommitdiffstats
path: root/reordercap.c
diff options
context:
space:
mode:
Diffstat (limited to 'reordercap.c')
-rw-r--r--reordercap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/reordercap.c b/reordercap.c
index b79c3d61c8..27f7c5350d 100644
--- a/reordercap.c
+++ b/reordercap.c
@@ -44,6 +44,7 @@
#endif
#include <wsutil/report_message.h>
+#include <wsutil/wslog.h>
#include "ui/failure_message.h"
@@ -207,8 +208,14 @@ main(int argc, char *argv[])
char *infile;
const char *outfile;
+ /* Initialize log handler early so we can have proper logging during startup. */
+ ws_log_init("reordercap", NULL);
+
cmdarg_err_init(reordercap_cmdarg_err, reordercap_cmdarg_err_cont);
+ /* Early logging command-line initialization. */
+ ws_log_parse_args(&argc, argv, vcmdarg_err, INVALID_OPTION);
+
/* Initialize the version information. */
ws_init_version_info("Reordercap (Wireshark)", NULL, NULL, NULL);