@@ -67,7 +67,8 @@ void ParseGguf(DatabaseService& db_service,
6767 CTL_INF (" Adding model to modellist with branch: " << branch);
6868
6969 auto rel = file_manager_utils::ToRelativeCortexDataPath (yaml_name);
70- CTL_INF (" path_to_model_yaml: " << rel.string ());
70+ CTL_INF (" path_to_model_yaml: " << rel.string ()
71+ << " , model: " << ggufDownloadItem.id );
7172
7273 auto author_id = author.has_value () ? author.value () : " cortexso" ;
7374 if (!db_service.HasModel (ggufDownloadItem.id )) {
@@ -86,6 +87,7 @@ void ParseGguf(DatabaseService& db_service,
8687 } else {
8788 if (auto m = db_service.GetModelInfo (ggufDownloadItem.id ); m.has_value ()) {
8889 auto upd_m = m.value ();
90+ upd_m.path_to_model_yaml = rel.string ();
8991 upd_m.status = cortex::db::ModelStatus::Downloaded;
9092 if (auto r = db_service.UpdateModelEntry (ggufDownloadItem.id , upd_m);
9193 r.has_error ()) {
@@ -161,6 +163,9 @@ void ModelService::ForceIndexingModelList() {
161163 continue ;
162164 }
163165 try {
166+ CTL_DBG (fmu::ToAbsoluteCortexDataPath (
167+ fs::path (model_entry.path_to_model_yaml ))
168+ .string ());
164169 yaml_handler.ModelConfigFromFile (
165170 fmu::ToAbsoluteCortexDataPath (
166171 fs::path (model_entry.path_to_model_yaml ))
@@ -171,6 +176,7 @@ void ModelService::ForceIndexingModelList() {
171176 } catch (const std::exception& e) {
172177 // remove in db
173178 auto remove_result = db_service_->DeleteModelEntry (model_entry.model );
179+ CTL_DBG (e.what ());
174180 // silently ignore result
175181 }
176182 }
0 commit comments