diff --git a/ApplicationCode/FileInterface/RifWellPathFormationReader.cpp b/ApplicationCode/FileInterface/RifWellPathFormationReader.cpp index 560df9be2c..65e1129628 100644 --- a/ApplicationCode/FileInterface/RifWellPathFormationReader.cpp +++ b/ApplicationCode/FileInterface/RifWellPathFormationReader.cpp @@ -18,6 +18,8 @@ #include "RifWellPathFormationReader.h" +#include "RiaLogging.h" + #include #include @@ -32,6 +34,10 @@ std::map> std::map>> formations; readFileIntoMap(filePath, &formations); + if (formations.empty()) + { + RiaLogging::error(QString("Failed to parse %1 as well path formations").arg(filePath)); + } std::map>>::iterator it; diff --git a/ApplicationCode/ProjectDataModel/RimWellPathCollection.cpp b/ApplicationCode/ProjectDataModel/RimWellPathCollection.cpp index 5dd9012170..1cc0375d44 100644 --- a/ApplicationCode/ProjectDataModel/RimWellPathCollection.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellPathCollection.cpp @@ -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())); } }