[Opensrf-commits] r996 - in trunk/src: libopensrf router
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 5 08:26:36 EDT 2007
Author: erickson
Date: 2007-07-05 08:22:45 -0400 (Thu, 05 Jul 2007)
New Revision: 996
Modified:
trunk/src/libopensrf/opensrf.c
trunk/src/router/osrf_router_main.c
Log:
removed some initial (non-error) stderr logging.
Modified: trunk/src/libopensrf/opensrf.c
===================================================================
--- trunk/src/libopensrf/opensrf.c 2007-07-05 00:14:18 UTC (rev 995)
+++ trunk/src/libopensrf/opensrf.c 2007-07-05 12:22:45 UTC (rev 996)
@@ -9,9 +9,6 @@
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] );
Modified: trunk/src/router/osrf_router_main.c
===================================================================
--- trunk/src/router/osrf_router_main.c 2007-07-05 00:14:18 UTC (rev 995)
+++ trunk/src/router/osrf_router_main.c 2007-07-05 12:22:45 UTC (rev 996)
@@ -35,12 +35,9 @@
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");
@@ -55,11 +52,6 @@
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")) {
More information about the opensrf-commits
mailing list