Changeset 7a8eec37fbb0637d35006674681160506259391f

Show
Ignore:
Timestamp:
02/12/10 21:39:49 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1266010789 +0000
git-parent:

[7f5fe2f05b5ffb0f808b4bb504b8096388a8687b]

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

logging fixes and line numbers, refs #42

Files:

Legend:

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

    r3c6e7b2 r7a8eec3  
    450450    const char *pgerr_end = strchr(pgerr, '\n'); \ 
    451451    if(!pgerr_end) pgerr_end = pgerr + strlen(pgerr); \ 
    452     noitL(ds_err, "[%s] stratcon datasource bad (%d): %.*s\n", \ 
    453           cq->fqdn ? cq->fqdn : "metanode", d->rv, \ 
     452    noitL(ds_err, "[%s] stratcon_datasource.c:%d bad (%d): %.*s\n", \ 
     453          cq->fqdn ? cq->fqdn : "metanode", __LINE__, d->rv, \ 
    454454          (int)(pgerr_end - pgerr), pgerr); \ 
    455455    PQclear(d->res); \ 
     
    473473    const char *pgerr_end = strchr(pgerr, '\n'); \ 
    474474    if(!pgerr_end) pgerr_end = pgerr + strlen(pgerr); \ 
    475     noitL(ds_err, "stratcon datasource bad (%d): %.*s time: %llu\n", \ 
    476           d->rv, (int)(pgerr_end - pgerr), pgerr, \ 
     475    noitL(ds_err, "stratcon_datasource.c:%d bad (%d): %.*s time: %llu\n", \ 
     476          __LINE__, d->rv, (int)(pgerr_end - pgerr), pgerr, \ 
    477477          (long long unsigned)whence); \ 
    478478    PQclear(d->res); \ 
     
    634634    row_count = PQntuples(d->res); 
    635635    if(row_count != 1) { 
    636       noitL(noit_debug, "lookup (sid:%d): NOT THERE!\n", node->sid, val); 
     636      noitL(noit_debug, "lookup (sid:%d): NOT THERE!\n", node->sid); 
    637637      PQclear(d->res); 
    638638      goto bad_row;