Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 45925 invoked by uid 500); 2 Jul 2003 04:35:12 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 45913 invoked by uid 500); 2 Jul 2003 04:35:12 -0000 Delivered-To: apmail-xml-axis-cvs@apache.org Date: 2 Jul 2003 04:35:10 -0000 Message-ID: <20030702043510.86983.qmail@icarus.apache.org> From: damitha@apache.org To: xml-axis-cvs@apache.org Subject: cvs commit: xml-axis/c/src/server/handlers LogHandler.cpp X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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)