diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2009-11-04 19:46:53 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2009-11-04 19:46:53 +0100 |
commit | a8384ac84d344a57a2592f3ad3970bc836cb5591 (patch) | |
tree | 8bc413bd77860dffb49443d02f25ef2060eefa9f /src/sysync/engineinterface.cpp | |
parent | b76470a04038b601a2521a7e496ccde08efc5fa9 (diff) |
TEngineInterface::debugPuts(): not active in server
The real implementation of TEngineInterface::debugPuts()
was unintentionally depending on the DBAPI_TUNNEL_SUPPORT
define. In the server engine, DBAPI_TUNNEL_SUPPORT wasn't set,
so the default implementation which only returned an error
was active.
Now client and server implement the call. The downcast to
TSyncClientBase was unnecessary, the base class also provides
getDbgLogger().
Diffstat (limited to 'src/sysync/engineinterface.cpp')
-rw-r--r-- | src/sysync/engineinterface.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sysync/engineinterface.cpp b/src/sysync/engineinterface.cpp index 6ac79f5..51ec65f 100644 --- a/src/sysync/engineinterface.cpp +++ b/src/sysync/engineinterface.cpp @@ -1780,22 +1780,21 @@ TSyError TEngineInterface::UpdateItemAsKey(SessionH aSessionH, KeyH aItemKey, cI return ds->TunnelUpdateItemAsKey(aItemKey,aID,updID); } // UpdateItemAsKey +#endif // DBAPI_TUNNEL_SUPPORT + TSyError TEngineInterface::debugPuts(cAppCharP aFile, int aLine, cAppCharP aFunction, int aDbgLevel, cAppCharP aPrefix, cAppCharP aText) { #if defined(SYDEBUG) - static_cast<TSyncClientBase *>(getSyncAppBase())->getDbgLogger()->DebugPuts(/* aFile, aLine, aFunction, aPrefix */ - aDbgLevel, aText); + getSyncAppBase()->getDbgLogger()->DebugPuts(/* aFile, aLine, aFunction, aPrefix */ + aDbgLevel, aText); return 0; #else return LOCERR_NOTIMP; #endif } // debugPuts -#endif // DBAPI_TUNNEL_SUPPORT - - #ifdef ENGINE_LIBRARY #ifndef SIMPLE_LINKING |