NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4486


Ignore:
Timestamp:
Sep 24, 2009, 4:52:17 PM (8 years ago)
Author:
stud-lenk
Message:

Make critical errors more visible by using more color

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ntlp/branches/20090723-multicast/src/routingentry.cpp

    r4485 r4486  
    5656  if (is_multicast_QNode()) {
    5757    if (nli == NULL) {
    58       ERRCLog("routingentry", "is_ma_reuse_requested() called for a multicast QNode, but no NLI given. This should never happen!");
     58      ERRCLog("routingentry", color[red] << "is_ma_reuse_requested() called for a multicast QNode, but no NLI given. This should never happen!" << color[off]);
    5959    } else {
    6060      mcast_peer_list_t::const_iterator it = multicast_peers.find(*nli);
    6161      if (it == multicast_peers.end()) {
    62         ERRCLog("routingentry", "is_ma_reuse_requested(): given peer not found in multicast peer list. This should never happen!");
     62        ERRCLog("routingentry", color[red] << "is_ma_reuse_requested(): given peer not found in multicast peer list. This should never happen!" << color[off]);
    6363      } else {
    6464        rv= it->second.ma_reuse;
     
    7878  if (is_multicast_QNode()) {
    7979    if (nli == NULL) {
    80       ERRCLog("routingentry", "set_ma_reuse_requested() called for a multicast QNode, but no NLI given. This should never happen!");
     80      ERRCLog("routingentry", color[red] << "set_ma_reuse_requested() called for a multicast QNode, but no NLI given. This should never happen!" << color[off]);
    8181      ma_reuse = reuse_ma;
    8282    } else {
    8383      mcast_peer_list_t::iterator it = multicast_peers.find(*nli);
    8484      if (it == multicast_peers.end()) {
    85         ERRCLog("routingentry", "is_ma_reuse_requested(): given peer not found in multicast peer list. This should never happen!");
     85        ERRCLog("routingentry", color[red] << "is_ma_reuse_requested(): given peer not found in multicast peer list. This should never happen!" << color[off]);
    8686        ma_reuse= reuse_ma;
    8787      } else {
     
    136136routingentry::add_multicast_peer(const nli* peer)
    137137{
    138   if (!is_multicast_QNode()) { ERRCLog("add_multicast_peer()", "Not a multicast QNode -- skipping"); return; }
     138  if (!is_multicast_QNode()) { ERRCLog("add_multicast_peer()", color[red] << "Not a multicast QNode -- skipping" << color[off]); return; }
    139139  assert(peer);
    140140  mcast_peer_list_t::iterator it;
     
    158158routingentry::expire_multicast_peers()
    159159{
    160   if (!is_multicast_QNode()) { ERRCLog("expire_multicast_peers()", "Not a multicast QNode -- skipping"); return; }
     160  if (!is_multicast_QNode()) { ERRCLog("expire_multicast_peers()", color[red] << "Not a multicast QNode -- skipping" << color[off]); return; }
    161161  mcast_peer_list_t::iterator it;
    162162  for (it=multicast_peers.begin(); it != multicast_peers.end(); it++)
     
    171171  if (!is_multicast_QNode())
    172172  {
    173     ERRCLog("purge_multicast_peers()", "called on a unicast QNode - this should never happen!");
     173    ERRCLog("purge_multicast_peers()", color[red] << "called on a unicast QNode - this should never happen!" << color[off]);
    174174    return;
    175175  }
Note: See TracChangeset for help on using the changeset viewer.