LP#1170484: log failure to load library for C app as an error user/gmcharlt/lp1170484_log_error_on_dlopen_failure
authorGalen Charlton <gmc@esilibrary.com>
Thu, 18 Apr 2013 20:14:00 +0000 (16:14 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 18 Apr 2013 20:14:00 +0000 (16:14 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/libopensrf/osrf_application.c

index f7be6a6..c205214 100644 (file)
@@ -153,7 +153,7 @@ int osrfAppRegisterApplication( const char* appName, const char* soFile ) {
        void* handle = dlopen( soFile, RTLD_NOW );
        if( ! handle ) {
                const char* msg = dlerror();
-               osrfLogWarning( OSRF_LOG_MARK, "Failed to dlopen library file %s: %s", soFile, msg );
+               osrfLogError( OSRF_LOG_MARK, "Failed to dlopen library file %s: %s", soFile, msg );
                return -1;
        }