Navigation


Changeset 1113:eb4ce68b6e5c in freeDiameter for libfdcore/p_out.c


Ignore:
Timestamp:
May 13, 2013, 8:17:13 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Added calls to remaining hooks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/p_out.c

    r1103 r1113  
    9898        CHECK_FCT_DO(fd_fifo_post(fd_g_outgoing, &msg),
    9999                {
    100                         //fd_msg_log( FD_MSG_LOG_DROPPED, msg, "An error occurred while attempting to requeue this message during cancellation of the sending function");
     100                        fd_hook_call(HOOK_MESSAGE_DROPPED, msg, NULL, "An error occurred while attempting to requeue this message during cancellation of the sending function", fd_msg_pmdl_get(msg));
    101101                        CHECK_FCT_DO(fd_msg_free(msg), /* What can we do more? */);
    102102                } );
     
    131131                        {
    132132                                if (msg) {
    133                                         //fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Internal error: Problem while sending (%s)", strerror(ret) );
     133                                        char buf[256];
     134                                        snprintf(buf, sizeof(buf), "Error while sending this message: s", strerror(ret));
     135                                        fd_hook_call(HOOK_MESSAGE_DROPPED, msg, NULL, buf, fd_msg_pmdl_get(msg));
    134136                                        fd_msg_free(msg);
    135137                                }
     
    183185                        {
    184186                                if (msg) {
    185                                         //fd_msg_log( FD_MSG_LOG_DROPPED, *msg, "Internal error: Problem while sending (%s)", strerror(ret) );
     187                                        char buf[256];
     188                                        snprintf(buf, sizeof(buf), "Error while sending this message: s", strerror(ret));
     189                                        fd_hook_call(HOOK_MESSAGE_DROPPED, *msg, NULL, buf, fd_msg_pmdl_get(*msg));
    186190                                        fd_msg_free(*msg);
    187191                                        *msg = NULL;
Note: See TracChangeset for help on using the changeset viewer.