mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
triton test hide errors behind debug flag
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+3
-2
@@ -401,8 +401,9 @@ def test_triton(early: bool = False):
|
||||
except Exception as e:
|
||||
triton_ok = False
|
||||
log.warning(f"Triton test fail: {e}")
|
||||
from modules import errors
|
||||
errors.display(e, 'Triton')
|
||||
if debug:
|
||||
from modules import errors
|
||||
errors.display(e, 'Triton')
|
||||
t1 = time.time()
|
||||
fn = f'{sys._getframe(2).f_code.co_name}:{sys._getframe(1).f_code.co_name}' # pylint: disable=protected-access
|
||||
log.debug(f'Triton: pass={triton_ok} fn={fn} time={t1-t0:.2f}')
|
||||
|
||||
Reference in New Issue
Block a user