use cached loglevel var in arguments to decide on status bar presence

Signed-off-by: Karl W Schulz <karl.schulz@amd.com>


[ROCm/rocprofiler-compute commit: a3a0eac80a]
Ta zmiana jest zawarta w:
Karl W Schulz authored and Karl W. Schulz committed 2024-03-11 14:19:01 -05:00
1 rodzic 917b784ead
złożenie 4969416e5f
Plik 1 zmieniony
+1 -1
@@ -338,7 +338,7 @@ class OmniProfiler_Base:
# show status bar in error-only mode
disable_tqdm = True
if logging.getLogger().getEffectiveLevel() >= logging.ERROR:
if self.__args.loglevel >= logging.ERROR:
disable_tqdm = False
# Run profiling on each input file