From 842651048bc0ad65d4281a9d962faee834b62dd6 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 5 Jul 2007 12:22:45 +0000 Subject: [PATCH] removed some initial (non-error) stderr logging. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@996 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libopensrf/opensrf.c | 3 --- src/router/osrf_router_main.c | 8 -------- 2 files changed, 11 deletions(-) diff --git a/src/libopensrf/opensrf.c b/src/libopensrf/opensrf.c index 5532f73..3b6f6fd 100644 --- a/src/libopensrf/opensrf.c +++ b/src/libopensrf/opensrf.c @@ -9,9 +9,6 @@ int main( int argc, char* argv[] ) { 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] ); diff --git a/src/router/osrf_router_main.c b/src/router/osrf_router_main.c index f3122cb..a789d98 100644 --- a/src/router/osrf_router_main.c +++ b/src/router/osrf_router_main.c @@ -35,12 +35,9 @@ int main( int argc, char* argv[] ) { 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 __setupRouter( char* config, char* context ) { 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")) { -- 2.11.0