Skip to content

Commit

Permalink
lib/messages: add msg rcptid printing to msg_event_create
Browse files Browse the repository at this point in the history
This is needed as there has to be central place where this is logged.

Signed-off-by: Szilard Parrag <szilard.parrag@axoflow.com>
  • Loading branch information
OverOrion committed Nov 5, 2024
1 parent 903ae74 commit bf14684
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ msg_event_create(gint prio, const gchar *desc, EVTTAG *tag1, ...)
evt_rec_add_tagsv(e, va);
va_end(va);
}
MsgContext *msg_context = msg_get_context();
if (msg_context->original_msg_rcptid != 0)
{
EVTTAG *rcptid_tag = evt_tag_printf("rcptid", "%" G_GUINT64_FORMAT, msg_context->original_msg_rcptid);
evt_rec_add_tag(e, rcptid_tag);
}
g_mutex_unlock(&evtlog_lock);
return e;
}
Expand Down

0 comments on commit bf14684

Please sign in to comment.