Show
Ignore:
Timestamp:
02/19/08 05:01:25 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203397285 +0000
git-parent:

[646e6d20498ab1b500fe30137a5541534219618b]

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

configurable logging and untested jlog hookup

Files:

Legend:

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

    r08cc6f6 r1648bed  
    6262  /* First initialize logging, so we can log errors */ 
    6363  noit_log_init(); 
    64   if(debug) { 
    65     noit_log_stream_add_stream(noit_debug, noit_stderr); 
    66     noit_debug->enabled = 1; 
    67   } 
    68   else { 
    69     noit_debug->enabled = 0; 
    70   } 
     64  noit_log_stream_add_stream(noit_debug, noit_stderr); 
    7165  noit_log_stream_add_stream(noit_error, noit_stderr); 
    7266 
     
    7670    fprintf(stderr, "Cannot load config: '%s'\n", config_file); 
    7771  } 
     72 
     73  /* Reinitialize the logging system now that we have a config */ 
     74  noit_conf_log_init(); 
     75  if(debug) 
     76    noit_debug->enabled = 1; 
    7877 
    7978  /* Lastly, run through all other system inits */