We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8fc6d3 commit 15a780bCopy full SHA for 15a780b
src/bin/bluebuild.rs
@@ -8,13 +8,18 @@ fn main() {
8
9
Logger::new()
10
.filter_level(args.verbosity.log_level_filter())
11
- .filter_modules([
12
- ("hyper::proto", LevelFilter::Off),
13
- ("hyper_util", LevelFilter::Off),
14
- ("reqwest", LevelFilter::Off),
15
- ("oci_client", LevelFilter::Off),
16
- ("rustls", LevelFilter::Off),
17
- ])
+ .filter_modules(if args.no_log_filter {
+ vec![]
+ } else {
+ vec![
+ ("hyper::proto", LevelFilter::Off),
+ ("hyper_util", LevelFilter::Off),
+ ("reqwest", LevelFilter::Off),
18
+ ("oci_client", LevelFilter::Off),
19
+ ("rustls", LevelFilter::Off),
20
+ ("mio", LevelFilter::Off),
21
+ ]
22
+ })
23
.log_out_dir(args.log_out.clone())
24
.init();
25
log::trace!("Parsed arguments: {args:#?}");
src/commands.rs
@@ -1,5 +1,6 @@
1
use std::path::PathBuf;
2
3
+use blue_build_utils::constants::BB_NO_LOG_FILTER;
4
use log::error;
5
6
use clap::{Parser, Subcommand, crate_authors};
@@ -49,6 +50,13 @@ pub struct BlueBuildArgs {
49
50
#[command(subcommand)]
51
pub command: CommandArgs,
52
53
+ /// Allows printing logs from all crates.
54
+ ///
55
+ /// WARNING: This can print sensitive information.
56
+ /// Be sure to run this in a non-public setting.
57
+ #[arg(long, env = BB_NO_LOG_FILTER)]
58
+ pub no_log_filter: bool,
59
+
60
/// The directory to output build logs.
61
#[arg(long)]
62
pub log_out: Option<PathBuf>,
utils/src/constants.rs
@@ -42,6 +42,7 @@ pub const BB_GENISO_SECURE_BOOT_URL: &str = "BB_GENISO_SECURE_BOOT_URL";
42
pub const BB_GENISO_VARIANT: &str = "BB_GENISO_VARIANT";
43
pub const BB_GENISO_WEB_UI: &str = "BB_GENISO_WEB_UI";
44
pub const BB_INSPECT_DRIVER: &str = "BB_INSPECT_DRIVER";
45
+pub const BB_NO_LOG_FILTER: &str = "BB_NO_LOG_FILTER";
46
pub const BB_PASSWORD: &str = "BB_PASSWORD";
47
pub const BB_PRIVATE_KEY: &str = "BB_PRIVATE_KEY";
48
pub const BB_REGISTRY: &str = "BB_REGISTRY";
0 commit comments