diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-09 17:04:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-09 17:04:53 +0100 |
commit | d1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd (patch) | |
tree | fd26ef8a2f55b9dc8cc9045230301a6b6d6b57f8 /src/client/rspamc.c | |
parent | 689afbb9986cac439d76f4cae5f232e6dc78ee28 (diff) | |
download | rspamd-d1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd.tar.gz rspamd-d1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd.zip |
[Feature] Do not print garbadge in --compact output
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r-- | src/client/rspamc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c index 9c00a4bc8..8f7f463bb 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -1238,12 +1238,16 @@ rspamc_client_cb (struct rspamd_client_connection *conn, } else { if (cmd->need_input) { - rspamd_fprintf (out, "Results for file: %s (%.3f seconds)\n", - cbdata->filename, diff); + if (!compact) { + rspamd_fprintf (out, "Results for file: %s (%.3f seconds)\n", + cbdata->filename, diff); + } } else { - rspamd_fprintf (out, "Results for command: %s (%.3f seconds)\n", - cmd->name, diff); + if (!compact) { + rspamd_fprintf (out, "Results for command: %s (%.3f seconds)\n", + cmd->name, diff); + } } if (result != NULL) { |