aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/main.rs')
-rw-r--r--crates/shirabe/src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/shirabe/src/main.rs b/crates/shirabe/src/main.rs
index c4d9d313..fb0b31f1 100644
--- a/crates/shirabe/src/main.rs
+++ b/crates/shirabe/src/main.rs
@@ -5,9 +5,10 @@ use std::io::IsTerminal as _;
/// Initialize a tracing subscriber from the environment variable `$SHIRABE_TRACING`.
fn init_tracing() {
- let Ok(directives) = std::env::var("SHIRABE_TRACING") else {
+ let Some(directives) = shirabe_php_shim::getenv("SHIRABE_TRACING") else {
return;
};
+ let directives = directives.to_string_lossy();
if directives.is_empty() {
return;
}