EgtMachKernel :

- aggiunta gestione livello di debug in LOG*.
This commit is contained in:
Dario Sassi
2019-04-01 06:16:03 +00:00
parent 9cd9068b7b
commit e4613162c5
24 changed files with 120 additions and 96 deletions
+6 -6
View File
@@ -682,7 +682,7 @@ MachMgr::AddMachining( const string& sName, const string& sMachining)
const MachiningData* pMd = pMMgr->GetMachining( sMachining) ;
if ( pMd == nullptr) {
string sOut = "AddMachining error : " + sMachining + " not found" ;
LOG_INFO( GetEMkLogger(), sOut.c_str())
LOG_ERROR( GetEMkLogger(), sOut.c_str())
return GDB_ID_NULL ;
}
int nMchType = pMd->GetType() ;
@@ -704,7 +704,7 @@ MachMgr::AddMachining( const string& sName, const string& sMachining)
// assegno il nome
if ( ! m_pGeomDB->SetName( nId, sNewName)) {
string sOut = "AddMachining error : " + sNewName + " invalid name " ;
LOG_INFO( GetEMkLogger(), sOut.c_str())
LOG_ERROR( GetEMkLogger(), sOut.c_str())
m_pGeomDB->Erase( nId) ;
return GDB_ID_NULL ;
}
@@ -714,7 +714,7 @@ MachMgr::AddMachining( const string& sName, const string& sMachining)
if ( pMch == nullptr || ! pMch->Init( this) ||
! pMch->SetPhase( m_nCurrPhase) || ! pMch->Prepare( sMachining)) {
string sOut = "AddMachining error : " + sMachining + " on " + sName ;
LOG_INFO( GetEMkLogger(), sOut.c_str())
LOG_ERROR( GetEMkLogger(), sOut.c_str())
m_pGeomDB->Erase( nId) ;
return GDB_ID_NULL ;
}
@@ -751,7 +751,7 @@ MachMgr::AddMachining( const string& sName, int nMchType, const string& sTool)
// assegno il nome
if ( ! m_pGeomDB->SetName( nId, sNewName)) {
string sOut = "AddMachining error : " + sNewName + " invalid name " ;
LOG_INFO( GetEMkLogger(), sOut.c_str())
LOG_ERROR( GetEMkLogger(), sOut.c_str())
m_pGeomDB->Erase( nId) ;
return GDB_ID_NULL ;
}
@@ -761,7 +761,7 @@ MachMgr::AddMachining( const string& sName, int nMchType, const string& sTool)
if ( pMch == nullptr || ! pMch->Init( this) ||
! pMch->SetPhase( m_nCurrPhase) || ! pMch->SetParam( MPA_TOOL, sTool)) {
string sOut = "AddMachining error : " + GetMachiningTitle( nMchType) + "/" + sTool + " on " + sName ;
LOG_INFO( GetEMkLogger(), sOut.c_str())
LOG_ERROR( GetEMkLogger(), sOut.c_str())
m_pGeomDB->Erase( nId) ;
return GDB_ID_NULL ;
}
@@ -801,7 +801,7 @@ MachMgr::CopyMachining( const string& sName, const string& sSouName)
// assegno il nome
if ( ! m_pGeomDB->SetName( nId, sNewName)) {
string sOut = "CopyMachining error : " + sNewName + " invalid name " ;
LOG_INFO( GetEMkLogger(), sOut.c_str())
LOG_ERROR( GetEMkLogger(), sOut.c_str())
m_pGeomDB->Erase( nId) ;
return GDB_ID_NULL ;
}