Only default logging when feature enabled.
authorscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 4 May 2012 21:10:41 +0000 (21:10 +0000)
committerscantor <scantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 4 May 2012 21:10:41 +0000 (21:10 +0000)
git-svn-id: https://svn.shibboleth.net/cpp-sp/branches/REL_2@3644 cb58f699-b61c-0410-a6fe-9272a202ed29

shibsp/SPConfig.cpp

index 13ca623..0e42344 100644 (file)
@@ -185,9 +185,9 @@ bool SPConfig::init(const char* catalog_path, const char* inst_prefix)
 
     const char* logconf = getenv("SHIBSP_LOGGING");
     if (!logconf || !*logconf) {
-        if (isEnabled(SPConfig::OutOfProcess) && !isEnabled(SPConfig::InProcess))
+        if (isEnabled(SPConfig::Logging) && isEnabled(SPConfig::OutOfProcess) && !isEnabled(SPConfig::InProcess))
             logconf = SHIBSP_OUTOFPROC_LOGGING;
-        else if (isEnabled(SPConfig::InProcess) && !isEnabled(SPConfig::OutOfProcess))
+        else if (isEnabled(SPConfig::Logging) && isEnabled(SPConfig::InProcess) && !isEnabled(SPConfig::OutOfProcess))
             logconf = SHIBSP_INPROC_LOGGING;
         else
             logconf = SHIBSP_LOGGING;