Show
Ignore:
Timestamp:
05/24/09 19:12:04 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1243192324 +0000
git-parent:

[69a11e3974721ffdfdcb4fba3c1114c8a2d7ec43]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1243192324 +0000
Message:

make iep uses dedicated logging stream for more flexibility. Fix the numeric event representaiton in Java. Demonstrates we need an object-based event for Text stuff too... as the other doesn't handle null right.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/stratcon_iep.c

    r8fd52de r2220278  
    5959 
    6060eventer_jobq_t iep_jobq; 
     61static noit_log_stream_t noit_iep = NULL; 
    6162 
    6263struct iep_thread_driver { 
     
    140141           ADDCHILD("name", parts[5]); 
    141142         }); 
    142 noitL(noit_error,"Submitting check %s\n", parts[2]); 
    143143  return doc; 
    144144} 
     
    241241                                "self::node()/@id", 
    242242                                id, sizeof(id))) { 
    243       noitL(noit_error, "No uuid specified in query\n"); 
     243      noitL(noit_iep, "No uuid specified in query\n"); 
    244244      continue; 
    245245    } 
     
    247247                                "ancestor-or-self::node()/@topic", 
    248248                                topic, sizeof(topic))) { 
    249       noitL(noit_error, "No topic specified in query\n"); 
     249      noitL(noit_iep, "No topic specified in query\n"); 
    250250      continue; 
    251251    } 
    252252    if(!noit_conf_get_string(query_configs[i], "self::node()", 
    253253                             &query)) { 
    254       noitL(noit_error, "No contents specified in query\n"); 
     254      noitL(noit_iep, "No contents specified in query\n"); 
    255255      continue; 
    256256    } 
     
    336336        return NULL; 
    337337      } 
    338       noitL(noit_error, "Response: %s, %s\n", frame->command, frame->body); 
    339338     } 
    340339#endif 
     
    427426  } 
    428427  else { 
    429     noitL(noit_error, "no iep handler for: '%s'\n", job->line); 
     428    noitL(noit_iep, "no iep handler for: '%s'\n", job->line); 
    430429  } 
    431430  return 0; 
     
    550549    assert(len < sizeof(buff)); 
    551550    buff[len] = '\0'; 
    552     noitL(noit_error, "IEP: %s", buff); 
     551    noitL(noit_iep, "%s", buff); 
    553552  } 
    554553} 
     
    642641  } 
    643642 
     643  noit_iep = noit_log_stream_find("error/iep"); 
     644  if(!noit_iep) noit_iep = noit_error; 
     645 
    644646  start_iep_daemon(); 
    645647