Remove obsolete text info

Remove text info when opening result cases using index file. Keep text report if error happens.
This commit is contained in:
Magne Sjaastad
2023-12-04 11:06:04 +01:00
parent 459dea64c7
commit c9574c2e05

View File

@@ -91,11 +91,6 @@ bool RifEclipseUnifiedRestartFileAccess::openFile()
if ( !m_ecl_file )
{
RiaLogging::error( QString( "Failed to open file %1 using index file." ).arg( m_filename ) );
RiaLogging::info( QString( "Will try to open file without index file." ) );
}
else
{
RiaLogging::info( QString( "Imported file %1 using index file." ).arg( m_filename ) );
}
}
}
@@ -118,13 +113,9 @@ bool RifEclipseUnifiedRestartFileAccess::openFile()
{
bool success = ecl_file_write_index( m_ecl_file, RiaStringEncodingTools::toNativeEncoded( indexFileName ).data() );
if ( success )
if ( !success )
{
RiaLogging::info( QString( "Exported index file to %1 " ).arg( indexFileName ) );
}
else
{
RiaLogging::info( QString( "Failed to exported index file to %1 " ).arg( indexFileName ) );
RiaLogging::error( QString( "Failed to exported index file to %1 " ).arg( indexFileName ) );
}
}
}