diff --git a/API_GeomDB.cpp b/API_GeomDB.cpp index 6ace9e7..51e23e6 100644 --- a/API_GeomDB.cpp +++ b/API_GeomDB.cpp @@ -35,8 +35,10 @@ __stdcall EgtInitGeomDB( void) VERIFY_NULL( Get( pGeomDB), "Error in CreateGeomDB", 0) // creo e recupero un contesto libero int nGseCtx = CreateGseContext() ; - if ( nGseCtx == 0) + if ( nGseCtx == 0) { + LOG_ERROR( GetLogger(), "Error in CreateGseContext (" __FUNCTION__ ")") return 0 ; + } GseContext* pGseCtx = GetGseContext( nGseCtx) ; // inserisco il GeomDB nel contesto pGseCtx->m_pGeomDB = Release( pGeomDB) ; @@ -44,7 +46,8 @@ __stdcall EgtInitGeomDB( void) pGseCtx->m_pGeomDB->SetDefaultMaterial( pGseCtx->m_colDef) ; // log avvio DB geometrico - LOG_INFO( GetLogger(), "GeomDB started") + string sLog = "GeomDB started " + ToString( nGseCtx) ; + LOG_INFO( GetLogger(), sLog.c_str()) return nGseCtx ; }