Skip to content

Commit

Permalink
Decrease all example log verbosities from TRACE to DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Nov 24, 2024
1 parent e001df8 commit 42ada12
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/01_normal_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/02_structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl IntoSubsystem<miette::Report> for Subsystem2 {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

let subsys1 = Subsystem1 { arg: 42 };
Expand Down
2 changes: 1 addition & 1 deletion examples/03_shutdown_timeout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async fn subsys1(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/04_subsystem_finished.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/05_subsystem_finished_with_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/06_nested_subsystems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async fn subsys2(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/07_nested_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async fn subsys2(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/08_panic_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn subsys2(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/09_task_cancellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl CountdownSubsystem {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/10_request_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl CountdownSubsystem {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/11_double_panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async fn subsys3(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/12_subsystem_auto_restart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn subsys1_keepalive(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/13_partial_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async fn subsys1(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/14_partial_shutdown_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async fn subsys1(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/15_without_miette.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async fn subsys1(_subsys: SubsystemHandle) -> Result<(), MyError> {
async fn main() -> Result<(), Box<dyn Error>> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/16_with_anyhow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn subsys1(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/17_with_eyre.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async fn subsys1(_subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/18_error_type_passthrough.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl IntoSubsystem<MyError, MyError> for Subsys6 {
async fn main() -> Result<(), miette::Report> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/19_sequential_shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async fn root(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/20_orchestrated_shutdown_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async fn parent(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/hyper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async fn hyper_subsystem(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down
2 changes: 1 addition & 1 deletion examples/warp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async fn warp_subsystem(subsys: SubsystemHandle) -> Result<()> {
async fn main() -> Result<()> {
// Init logging
tracing_subscriber::fmt()
.with_max_level(tracing::Level::TRACE)
.with_max_level(tracing::Level::DEBUG)
.init();

// Setup and execute subsystem tree
Expand Down

0 comments on commit 42ada12

Please sign in to comment.