File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3434from chipsec .library .file import get_main_dir
3535from chipsec .library .strings import make_hex_key_str
3636from chipsec .library .exceptions import HALNotFoundError , HALInitializationError
37+ if logger ().DEBUG :
38+ import traceback
3739# Search subfolders for hals
3840
3941class Hals :
@@ -69,6 +71,7 @@ def __getattr__(self, name):
6971 hal_class = getattr (best_hal ['mod' ], name )
7072 setattr (self , name , hal_class (self .cs ))
7173 except Exception as err :
74+ logger ().log_debug (traceback .format_exc ())
7275 raise HALInitializationError (f'HAL with name { name } was not able to be initialized: { str (err )} ' )
7376 return super (Hals , self ).__getattribute__ (name )
7477
@@ -115,6 +118,7 @@ def update_available_hals(self) -> Dict[str, Any]:
115118 except ImportError as err :
116119 # Display the import error and continue to import commands
117120 logger ().log_error (f"Exception occurred during import of { hal } : '{ str (err )} '" )
121+ logger ().log_debug (traceback .format_exc ())
118122 continue
119123 except AttributeError as err :
120124 logger ().log_error (f"HAL { hal } has not been updated with 'haldata' attribute: '{ str (err )} '" )
You can’t perform that action at this time.
0 commit comments