summaryrefslogtreecommitdiffstats
path: root/src/plugins/abrt-action-analyze-python.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/abrt-action-analyze-python.c')
-rw-r--r--src/plugins/abrt-action-analyze-python.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/plugins/abrt-action-analyze-python.c b/src/plugins/abrt-action-analyze-python.c
index feffb439..44e2d4b8 100644
--- a/src/plugins/abrt-action-analyze-python.c
+++ b/src/plugins/abrt-action-analyze-python.c
@@ -35,31 +35,27 @@ int main(int argc, char **argv)
/* Can't keep these strings/structs static: _() doesn't support that */
const char *program_usage_string = _(
- PROGNAME" [-v] -d DIR\n\n"
+ PROGNAME" [-v] -d DIR\n"
+ "\n"
"Calculates and saves UUID and DUPHASH of python crash dumps"
);
enum {
OPT_v = 1 << 0,
OPT_d = 1 << 1,
-// OPT_s = 1 << 2,
};
/* Keep enum above and order of options below in sync! */
struct options program_options[] = {
OPT__VERBOSE(&g_verbose),
- OPT_STRING('d', NULL, &dump_dir_name, "DIR", _("Crash dump directory")),
-// OPT_BOOL( 's', NULL, NULL, _("Log to syslog" )),
+ OPT_STRING('d', NULL, &dump_dir_name, "DIR", _("Dump directory")),
OPT_END()
};
/*unsigned opts =*/ parse_opts(argc, argv, program_options, program_usage_string);
putenv(xasprintf("ABRT_VERBOSE=%u", g_verbose));
- msg_prefix = PROGNAME;
-//Maybe we will want this... later
-// if (opts & OPT_s)
-// {
-// openlog(msg_prefix, 0, LOG_DAEMON);
-// logmode = LOGMODE_SYSLOG;
-// }
+
+ char *pfx = getenv("ABRT_PROG_PREFIX");
+ if (pfx && string_to_bool(pfx))
+ msg_prefix = PROGNAME;
struct dump_dir *dd = dd_opendir(dump_dir_name, /*flags:*/ 0);
if (!dd)