diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-03 17:09:00 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-03 17:09:00 +0300 |
commit | 426963bff9e01d7d2f48d0e9eb232ccc11b33808 (patch) | |
tree | c9ef707091db34da264c63c8cafd334b0aabeeaa /src | |
parent | cbc577df0ee6ec8855913442cfe0efe3a184e725 (diff) | |
download | rspamd-426963bff9e01d7d2f48d0e9eb232ccc11b33808.tar.gz rspamd-426963bff9e01d7d2f48d0e9eb232ccc11b33808.zip |
Write release id if rspamd is built from hg.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index a2ae832bb..591dd6183 100644 --- a/src/main.c +++ b/src/main.c @@ -184,7 +184,7 @@ read_cmd_line (gint argc, gchar **argv, struct config_file *cfg) GOptionContext *context; context = g_option_context_new ("- run rspamd daemon"); - g_option_context_set_summary (context, "Summary:\n Rspamd daemon version " RVERSION); + g_option_context_set_summary (context, "Summary:\n Rspamd daemon version " RVERSION "\n Release id: " RID); g_option_context_add_main_entries (context, entries, NULL); if (!g_option_context_parse (context, &argc, &argv, &error)) { fprintf (stderr, "option parsing failed: %s\n", error->message); @@ -879,7 +879,7 @@ main (gint argc, gchar **argv, gchar **env) config_logger (rspamd, TRUE); - msg_info ("rspamd " RVERSION " is starting"); + msg_info ("rspamd " RVERSION " is starting, build id: " RID); rspamd->cfg->cfg_name = memory_pool_strdup (rspamd->cfg->cfg_pool, rspamd->cfg->cfg_name); if (!rspamd->cfg->no_fork && daemon (0, 0) == -1) { |