Added a bit of logging.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 22 Jul 2003 19:09:42 +0000 (19:09 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 22 Jul 2003 19:09:42 +0000 (19:09 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@655 cb58f699-b61c-0410-a6fe-9272a202ed29

isapi_shib/isapi_shib.cpp

index 46e10b4..aa71710 100644 (file)
@@ -151,6 +151,8 @@ extern "C" BOOL WINAPI GetFilterVersion(PHTTP_FILTER_VERSION pVer)
         // Create the RPC Handle TLS key.
         rpc_handle_key=ThreadKey::create(destroy_handle);
 
         // Create the RPC Handle TLS key.
         rpc_handle_key=ThreadKey::create(destroy_handle);
 
+        Category& log=Category::getInstance("isapi_shib.GetFilterVersion");
+
         // Read site-specific settings for each instance ID we can find.
         unsigned short i=1;
         char iid[8];
         // Read site-specific settings for each instance ID we can find.
         unsigned short i=1;
         char iid[8];
@@ -158,9 +160,12 @@ extern "C" BOOL WINAPI GetFilterVersion(PHTTP_FILTER_VERSION pVer)
         string hostname;
         while (ini.get_tag("isapi",iid,false,&hostname))
         {
         string hostname;
         while (ini.get_tag("isapi",iid,false,&hostname))
         {
+            log.info("configuring for site ID (%d), hostname (%s)",i-1,hostname.empty() ? "null" : hostname.c_str());
+
             // If no section exists for the host, mark it as a "skip" site.
             if (!ini.exists(hostname))
             {
             // If no section exists for the host, mark it as a "skip" site.
             if (!ini.exists(hostname))
             {
+                log.info("skipping site ID (%d)",i-1);
                 g_Sites.push_back(settings_t());
                 sprintf(iid,"%u",i++);
                 continue;
                 g_Sites.push_back(settings_t());
                 sprintf(iid,"%u",i++);
                 continue;
@@ -189,6 +194,7 @@ extern "C" BOOL WINAPI GetFilterVersion(PHTTP_FILTER_VERSION pVer)
             
             g_Sites.push_back(settings);
             sprintf(iid,"%u",i++);
             
             g_Sites.push_back(settings);
             sprintf(iid,"%u",i++);
+            hostname.erase();
         }
     }
     catch (SAMLException&)
         }
     }
     catch (SAMLException&)