Navigation


Changeset 1168:a4604f98adae in freeDiameter for libfdcore


Ignore:
Timestamp:
Jun 1, 2013, 1:29:33 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Split output of fd_msg_dump_treeview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/hooks.c

    r1163 r1168  
    360360                                       
    361361                                        LOG_E("Parsing error: '%s' for the following message received from '%s':", (char *)other, (char *)id);
    362                                         LOG_E("%s", buf);
     362                                        LOG_SPLIT(FD_LOG_ERROR, "   ", buf?:"<error dumping message>", NULL);
    363363                                } else {
    364364                                        struct fd_cnx_rcvdata *rcv_data = other;
     
    380380
    381381                                LOG_E("Routing error: '%s' for the following message:", (char *)other);
    382                                 LOG_E("%s", buf);
     382                                LOG_SPLIT(FD_LOG_ERROR, "   ", buf?:"<error dumping message>", NULL);
    383383                                break;
    384384                        }
     
    399399                                CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break);
    400400                                LOG_E("Message discarded ('%s'):", (char *)other);
    401                                 LOG_E("%s", buf);
     401                                LOG_SPLIT(FD_LOG_ERROR, "   ", buf?:"<error dumping message>", NULL);
    402402                                break;
    403403                        }
     
    405405                        case HOOK_PEER_CONNECT_FAILED: {
    406406                                if (msg) {
    407                                         size_t offset = 0;
    408                                         CHECK_MALLOC_DO(fd_dump_extend(&buf, &len, &offset, " CER/CEA dump:\n"), break);
    409                                         CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, &offset, msg, NULL, 0, 1), break);
    410                                         LOG_N("Connection to '%s' failed: %s%s", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", (char *)other, buf);
     407                                        CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break);
     408                                        LOG_N("Connection to '%s' failed: '%s'; CER/CEA dump:", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", (char *)other);
     409                                        LOG_SPLIT(FD_LOG_NOTICE, "   ", buf?:"<error dumping message>", NULL);
    411410                                } else {
    412411                                        LOG_D("Connection to '%s' failed: %s", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", (char *)other);
     
    421420                                }
    422421                                CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break);
    423                                 LOG_N("Connected to '%s', remote capabilities: %s", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", buf);
     422                                LOG_N("Connected to '%s', remote capabilities: ", peer ? peer->p_hdr.info.pi_diamid : "<unknown>");
     423                                LOG_SPLIT(FD_LOG_NOTICE, "   ", buf?:"<error dumping message>", NULL);
    424424                                break;
    425425                        }
Note: See TracChangeset for help on using the changeset viewer.