Skip to content

Commit e056c81

Browse files
eginezCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent d2e0a94 commit e056c81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/accelerate/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ pub fn getenv_use_multiple_threads() -> bool {
4444
let result = !parallel_context || force_threads;
4545

4646
// Log threading decision if debug logging is enabled
47-
if env::var("QISKIT_DEBUG_THREADING").is_ok() {
47+
if env::var("QISKIT_DEBUG_THREADING")
48+
.unwrap_or_else(|_| "FALSE".to_string())
49+
.to_uppercase()
50+
== "TRUE"
51+
{
4852
eprintln!(
4953
"Rust threading decision: {} (parallel_context={}, force_threads={})",
5054
if result { "MULTI_THREADED" } else { "SINGLE_THREADED" },

0 commit comments

Comments
 (0)