Skip to content

Commit 2b7b97c

Browse files
added full traceback in debug
1 parent 7c17130 commit 2b7b97c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ads/aqua/app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import json
66
import os
7+
import traceback
78
from dataclasses import fields
89
from typing import Dict, Union
910

@@ -326,13 +327,12 @@ def get_config(self, model_id: str, config_file_name: str) -> Dict:
326327
)
327328
except Exception:
328329
logger.debug(
329-
f"Error loading the {config_file_name} at path {config_path}.",
330-
exc_info=True,
330+
f"Error loading the {config_file_name} at path {config_path}.\n"
331+
f"{traceback.format_exc()}"
331332
)
332-
pass
333333

334334
if not config:
335-
logger.error(
335+
logger.debug(
336336
f"{config_file_name} is not available for the model: {model_id}. "
337337
f"Check if the custom metadata has the artifact path set."
338338
)

0 commit comments

Comments
 (0)