@@ -193,11 +193,11 @@ def create(
193
193
eval_inference_configuration = (
194
194
container .spec .evaluation_configuration
195
195
)
196
- except Exception :
196
+ except Exception as ex :
197
197
logger .debug (
198
198
f"Could not load inference config details for the evaluation source id: "
199
199
f"{ create_aqua_evaluation_details .evaluation_source_id } . Please check if the container"
200
- f" runtime has the correct SMC image information."
200
+ f" runtime has the correct SMC image information.\n Error: { str ( ex ) } "
201
201
)
202
202
elif (
203
203
DataScienceResource .MODEL
@@ -283,7 +283,7 @@ def create(
283
283
f"Invalid experiment name. Please provide an experiment with `{ Tags .AQUA_EVALUATION } ` in tags."
284
284
)
285
285
except Exception :
286
- logger .debug (
286
+ logger .info (
287
287
f"Model version set { experiment_model_version_set_name } doesn't exist. "
288
288
"Creating new model version set."
289
289
)
@@ -705,14 +705,16 @@ def get(self, eval_id) -> AquaEvaluationDetail:
705
705
try :
706
706
log = utils .query_resource (log_id , return_all = False )
707
707
log_name = log .display_name if log else ""
708
- except Exception :
708
+ except Exception as ex :
709
+ logger .debug (f"Failed to get associated log name. Error: { ex } " )
709
710
pass
710
711
711
712
if loggroup_id :
712
713
try :
713
714
loggroup = utils .query_resource (loggroup_id , return_all = False )
714
715
loggroup_name = loggroup .display_name if loggroup else ""
715
- except Exception :
716
+ except Exception as ex :
717
+ logger .debug (f"Failed to get associated loggroup name. Error: { ex } " )
716
718
pass
717
719
718
720
try :
@@ -1041,6 +1043,7 @@ def download_report(self, eval_id) -> AquaEvalReport:
1041
1043
return report
1042
1044
1043
1045
with tempfile .TemporaryDirectory () as temp_dir :
1046
+ logger .info (f"Downloading evaluation artifact for { eval_id } ." )
1044
1047
DataScienceModel .from_id (eval_id ).download_artifact (
1045
1048
temp_dir ,
1046
1049
auth = self ._auth ,
@@ -1194,6 +1197,7 @@ def _delete_job_and_model(job, model):
1194
1197
def load_evaluation_config (self , container : Optional [str ] = None ) -> Dict :
1195
1198
"""Loads evaluation config."""
1196
1199
1200
+ logger .info ("Loading evaluation container config." )
1197
1201
# retrieve the evaluation config by container family name
1198
1202
evaluation_config = get_evaluation_service_config (container )
1199
1203
@@ -1273,9 +1277,9 @@ def _get_source(
1273
1277
raise AquaRuntimeError (
1274
1278
f"Not supported source type: { resource_type } "
1275
1279
)
1276
- except Exception :
1280
+ except Exception as ex :
1277
1281
logger .debug (
1278
- f"Failed to retrieve source information for evaluation { evaluation .identifier } ."
1282
+ f"Failed to retrieve source information for evaluation { evaluation .identifier } .\n Error: { ex } "
1279
1283
)
1280
1284
source_name = ""
1281
1285
0 commit comments