Style: Automatische Formatierung & Clippy-Fixes
TruffleHog Secret Scan / TruffleHog (push) Successful in 16s
Security Scans / Trivy & OSV-Scanner (push) Successful in 26s
Code Quality (Auto-Format & Clippy-Fix) / Formatierung & Clippy automatisch beheben (push) Successful in 27s
TruffleHog Secret Scan / TruffleHog (pull_request) Successful in 16s
Security Scans / Trivy & OSV-Scanner (pull_request) Successful in 26s
Unit-Tests / Unit-Tests (pull_request) Successful in 30s

This commit is contained in:
2026-09-12 22:36:36 +00:00
parent 3abd8d9c24
commit 95d2ea6d9c
+4 -2
View File
@@ -140,7 +140,8 @@ pub fn get_log_level() -> LogLevel {
} }
if let Ok(val) = env::var("LOG_LEVEL").or_else(|_| env::var("RUST_LOG")) if let Ok(val) = env::var("LOG_LEVEL").or_else(|_| env::var("RUST_LOG"))
&& let Ok(lvl) = LogLevel::try_from(val.as_str()) { && let Ok(lvl) = LogLevel::try_from(val.as_str())
{
return lvl; return lvl;
} }
@@ -230,7 +231,8 @@ pub fn log(tag: &str, message: &str, log_level: LogLevel) {
let file_lock = get_or_init_log_file(); let file_lock = get_or_init_log_file();
if let Ok(mut guard) = file_lock.lock() if let Ok(mut guard) = file_lock.lock()
&& let Some(f) = guard.as_mut() { && let Some(f) = guard.as_mut()
{
let _ = writeln!(f, "{}", formatted); let _ = writeln!(f, "{}", formatted);
let _ = f.flush(); let _ = f.flush();
} }