Some checks failed
Update flake hashes / update-flake-hashes (pull_request) Successful in 32s
Documentation / Build and Deploy Documentation (pull_request) Successful in 1m17s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 2m19s
Documentation / Build and Deploy Documentation (push) Successful in 1m45s
Checks / Prek / Pre-commit & Formatting (push) Successful in 3m37s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 15m48s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 13m36s
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 2m37s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 1h0m0s
Checks / Prek / Clippy and Cargo Tests (push) Failing after 1h0m0s
Release Docker Image / Build linux-amd64 (max-perf) (push) Successful in 25m10s
Release Docker Image / Build linux-arm64 (max-perf) (push) Successful in 26m2s
Release Docker Image / Create Max-Perf Manifest (push) Successful in 26s
Primary issues: Double escapes (debug fmt), spans without levels
22 lines
487 B
Rust
22 lines
487 B
Rust
use conduwuit::{debug, error, warn};
|
|
use rocksdb::LogLevel;
|
|
|
|
#[tracing::instrument(
|
|
parent = None,
|
|
name = "rocksdb",
|
|
level = "trace",
|
|
skip(msg),
|
|
)]
|
|
pub(crate) fn handle(level: LogLevel, msg: &str) {
|
|
let msg = msg.trim();
|
|
if msg.starts_with("Options") {
|
|
return;
|
|
}
|
|
|
|
match level {
|
|
| LogLevel::Header | LogLevel::Debug => debug!("{msg}"),
|
|
| LogLevel::Error | LogLevel::Fatal => error!("{msg}"),
|
|
| LogLevel::Info => debug!("{msg}"),
|
|
| LogLevel::Warn => warn!("{msg}"),
|
|
}
|
|
}
|