axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: xml-axis/c/src/server/handlers LogHandler.cpp
Date Wed, 02 Jul 2003 04:35:10 GMT
damitha     2003/07/01 21:35:10

  Modified:    c/src/server/handlers LogHandler.cpp
  Log:
  
  
  Revision  Changes    Path
  1.3       +12 -7     xml-axis/c/src/server/handlers/LogHandler.cpp
  
  Index: LogHandler.cpp
  ===================================================================
  RCS file: /home/cvs/xml-axis/c/src/server/handlers/LogHandler.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LogHandler.cpp	1 Jul 2003 07:32:15 -0000	1.2
  +++ LogHandler.cpp	2 Jul 2003 04:35:10 -0000	1.3
  @@ -28,9 +28,10 @@
   // Implementation of BasicHandler interface.
   int LogHandler::Invoke(MessageData* md)
   {
  -#if defined( DEBUG)
  -  debugger.debug("LogHandler::Invoke(MessageData* md)");
  -#endif
  +  try
  +  {
  +    DEBUG1("LogHandler::Invoke(MessageData* md)");
  +
       m_iNumAccess = 0;
       string sNumAccess = "";
       string s = "logAccessCountFile";
  @@ -38,9 +39,8 @@
   
       if(!sFileName.empty())
       {
  -#if defined( DEBUG)
  -  debugger.debug("if(!sFileName.empty())");
  -#endif
  +
  +      DEBUG1("if(!sFileName.empty())");
   
         ifstream fin(sFileName.c_str());    // open for reading
          char ch;
  @@ -66,13 +66,18 @@
         const char * FileName = sFileName.c_str();
         ofstream fout(FileName);  // open for writing
         fout << m_iNumAccess;
  -
  +      DEBUG1("LogHandler Invoke end");
         return SUCCESS;
       }
       else
       {
         return FAIL;
       }
  +  }
  +  catch (...)
  +	{
  +		return FAIL;
  +	}
   }
   
   void LogHandler::OnFault(MessageData* mc)
  
  
  

Mime
View raw message