Snap for 11392706 from b4adac4035
to 24Q2-release
Change-Id: I00538f570551b0a53d167423fb074595070c6200
This commit is contained in:
commit
d49c151736
3 changed files with 8 additions and 4 deletions
|
@ -40,8 +40,8 @@ fn main() {
|
|||
android_logger::init_once(
|
||||
android_logger::Config::default()
|
||||
.with_tag("keystore2")
|
||||
.with_min_level(log::Level::Debug)
|
||||
.with_log_id(android_logger::LogId::System)
|
||||
.with_max_level(log::LevelFilter::Debug)
|
||||
.with_log_buffer(android_logger::LogId::System)
|
||||
.format(|buf, record| {
|
||||
writeln!(
|
||||
buf,
|
||||
|
|
|
@ -142,6 +142,8 @@ cc_binary {
|
|||
"libfsverity",
|
||||
"liblogwrap",
|
||||
"libprotobuf-cpp-lite",
|
||||
"libstatspull",
|
||||
"libstatssocket",
|
||||
"libutils",
|
||||
],
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ use std::{
|
|||
|
||||
use anyhow::{ensure, Context, Result};
|
||||
use clap::Parser;
|
||||
use log::{error, info, Level};
|
||||
use log::{error, info, LevelFilter};
|
||||
use nix::sys::signal;
|
||||
use tokio::{io::AsyncWriteExt, net::UnixListener as TokioUnixListener};
|
||||
|
||||
|
@ -48,7 +48,9 @@ struct Cli {
|
|||
fn configure_logging() -> Result<()> {
|
||||
ensure!(
|
||||
logger::init(
|
||||
logger::Config::default().with_tag_on_device("prng_seeder").with_min_level(Level::Info)
|
||||
logger::Config::default()
|
||||
.with_tag_on_device("prng_seeder")
|
||||
.with_max_level(LevelFilter::Info)
|
||||
),
|
||||
"log configuration failed"
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue