return 1;
}
- fprintf(stderr, "Loading OpenSRF host %s with bootstrap config %s "
- "and config context %s\n", argv[1], argv[2], argv[3] );
-
/* these must be strdup'ed because init_proc_title / set_proc_title
are evil and overwrite the argv memory */
char* host = strdup( argv[1] );
int __setupRouter( char* config, char* context ) {
- osrfLogInfo(OSRF_LOG_MARK, "Launching router with config "
- "%s and config context %s", config, context );
osrfConfig* cfg = osrfConfigInit( config, context );
osrfConfigSetDefaultConfig(cfg);
-
char* server = osrfConfigGetValue(NULL, "/transport/server");
char* port = osrfConfigGetValue(NULL, "/transport/port");
char* username = osrfConfigGetValue(NULL, "/transport/username");
int llevel = 1;
if(level) llevel = atoi(level);
- /*
- if(!log_init( llevel, log_file ))
- fprintf(stderr, "Unable to init logging, going to stderr...\n" );
- */
-
if(!log_file) { fprintf(stderr, "Log file needed\n"); return -1; }
if(!strcmp(log_file, "syslog")) {