return_finished
} ret = return_want_more;
guint i, nreplied;
+ const gchar *op = "process";
task = session->task;
ftype = "txt";
}
+ if (io->cmd.cmd == FUZZY_WRITE) {
+ op = "added";
+ }
+ else if (io->cmd.cmd == FUZZY_DEL) {
+ op = "deleted";
+ }
+
if (rep->prob > 0.5) {
- msg_info_task ("processed fuzzy hash (%s) %*xs, list: %s:%d for "
- "message <%s>",
+ msg_info_task ("%s fuzzy hash (%s) %*xs, list: %s:%d for "
+ "message <%s>",
+ op,
ftype,
(gint)sizeof (cmd->digest), cmd->digest,
symbol,
session->task->message_id);
}
else {
- msg_info_task ("cannot process fuzzy hash (%s) for message "
+ msg_info_task ("fuzzy hash (%s) for message cannot be %s"
"<%s>, %*xs, "
"list %s:%d, error: %d",
ftype,
+ op,
session->task->message_id,
(gint)sizeof (cmd->digest), cmd->digest,
symbol,