diff options
author | Henri Herscher <henri@oreka.org> | 2007-02-07 20:06:09 +0000 |
---|---|---|
committer | Henri Herscher <henri@oreka.org> | 2007-02-07 20:06:09 +0000 |
commit | 6921d5b3d1a4a2de5cbf806c98b1272af42c9fdc (patch) | |
tree | 71f9dce05d944961ad056f52ca7435839643ac32 /orkbasecxx/OrkClient.h | |
parent | df00070ac0bd9dda8503a33b713275e8d1ee0af3 (diff) |
Added OS errno logging when an OrkClient HTTP request fails.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@404 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/OrkClient.h')
-rw-r--r-- | orkbasecxx/OrkClient.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/orkbasecxx/OrkClient.h b/orkbasecxx/OrkClient.h index f1487dd..fe36c3e 100644 --- a/orkbasecxx/OrkClient.h +++ b/orkbasecxx/OrkClient.h @@ -14,6 +14,7 @@ #ifndef __ORKCLIENT_H__ #define __ORKCLIENT_H__ +#include <log4cxx/logger.h> #include "messages/SyncMessage.h" #include "messages/AsyncMessage.h" @@ -21,7 +22,13 @@ class DLL_IMPORT_EXPORT_ORKBASE OrkClient { public: + OrkClient(); virtual bool Execute(SyncMessage& request, AsyncMessage& response, CStdString& hostname, int tcpPort, CStdString& serviceName, int timeout = 5) = 0; +protected: + LogError(CStdString& errorString); + + log4cxx::LoggerPtr m_log; + static time_t s_lastErrorReportedTime; }; /** Abstract base class for all clients based on http. */ |