#2221 Well Path Formation names: Add logging on import and well creation/matching

This commit is contained in:
Rebecca Cox 2017-12-05 08:58:51 +01:00
parent 63489ba91b
commit bc026da2f6
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,8 @@
#include "RifWellPathFormationReader.h"
#include "RiaLogging.h"
#include <QFile>
#include <QStringList>
@ -32,6 +34,10 @@ std::map<QString, cvf::ref<RigWellPathFormations>>
std::map<QString, std::vector<std::pair<double, QString>>> formations;
readFileIntoMap(filePath, &formations);
if (formations.empty())
{
RiaLogging::error(QString("Failed to parse %1 as well path formations").arg(filePath));
}
std::map<QString, std::vector<std::pair<double, QString>>>::iterator it;

View File

@ -22,6 +22,7 @@
#include "RiaApplication.h"
#include "RiaColorTables.h"
#include "RiaLogging.h"
#include "RiaPreferences.h"
#include "RiaWellNameComparer.h"
@ -348,6 +349,7 @@ void RimWellPathCollection::addWellPathFormations(const QStringList& filePaths)
}
wellPath->setFormationsGeometry(it->second);
m_newestAddedWellPath = wellPath;
RiaLogging::info(QString("Well path formations set for well %1").arg(wellPath->name()));
}
}