Show
Ignore:
Timestamp:
01/30/08 05:06:13 (11 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1201669573 +0000
git-parent:

[27bd35b5a3e6285c5119854280b9d30b9b869fdf]

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

update logging to support faster avoidance, line numbers, filenames, etc.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer_kqueue_impl.c

    re3c8f10 r1afde4e  
    270270                      NULL, 0, 
    271271                      &__zerotime); 
    272       noit_log(noit_debug, &__now, "debug: kevent(%d, [], %d) => %d\n", kqueue_fd, master_kqs->__ke_vec_used, fd_cnt); 
     272      noitLT(noit_debug, &__now, "debug: kevent(%d, [], %d) => %d\n", kqueue_fd, master_kqs->__ke_vec_used, fd_cnt); 
    273273      if(fd_cnt < 0) { 
    274         noit_log(noit_error, &__now, "kevent: %s\n", strerror(errno)); 
     274        noitLT(noit_error, &__now, "kevent: %s\n", strerror(errno)); 
    275275      } 
    276276      master_kqs->__ke_vec_used = 0; 
     
    284284                    ke_vec, ke_vec_a, 
    285285                    &__kqueue_sleeptime); 
    286     noit_log(noit_debug, &__now, "debug: kevent(%d, [], %d) => %d\n", kqueue_fd, ke_vec_used, fd_cnt); 
     286    noitLT(noit_debug, &__now, "debug: kevent(%d, [], %d) => %d\n", kqueue_fd, ke_vec_used, fd_cnt); 
    287287    ke_vec_used = 0; 
    288288    if(fd_cnt < 0) { 
    289       noit_log(noit_error, &__now, "kevent: %s\n", strerror(errno)); 
     289      noitLT(noit_error, &__now, "kevent: %s\n", strerror(errno)); 
    290290    } 
    291291    else { 
     
    317317        if(ke->flags & EV_ERROR) { 
    318318          if(ke->data != EBADF) 
    319             noit_log(noit_error, &__now, "error: %s\n", strerror(ke->data)); 
     319            noitLT(noit_error, &__now, "error: %s\n", strerror(ke->data)); 
    320320          continue; 
    321321        } 
     
    330330        oldmask = e->mask; 
    331331        cbname = eventer_name_for_callback(e->callback); 
    332         noit_log(noit_debug, &__now, "kqueue: fire on %d/%x to %s(%p)\n", 
    333                  fd, masks[fd], cbname?cbname:"???", e->callback); 
     332        noitLT(noit_debug, &__now, "kqueue: fire on %d/%x to %s(%p)\n", 
     333               fd, masks[fd], cbname?cbname:"???", e->callback); 
    334334        newmask = e->callback(e, masks[fd], e->closure, &__now); 
    335335        masks[fd] = 0; /* indicates we've processed this fd */