mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-15 23:46:51 +08:00
feat: 支持树莓派 v4l2m2m 编码器探测
This commit is contained in:
@@ -712,10 +712,13 @@ fn init_logging(level: LogLevel, verbose_count: u8) {
|
||||
let env_filter =
|
||||
tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| filter.into());
|
||||
|
||||
tracing_subscriber::registry()
|
||||
if let Err(err) = tracing_subscriber::registry()
|
||||
.with(env_filter)
|
||||
.with(tracing_subscriber::fmt::layer())
|
||||
.init();
|
||||
.try_init()
|
||||
{
|
||||
eprintln!("failed to initialize tracing: {}", err);
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the application data directory
|
||||
|
||||
Reference in New Issue
Block a user