generated from PlexSheep/baserepo
minor cosmetic changes
This commit is contained in:
parent
b5dbbeaff2
commit
33ec84075a
|
@ -28,6 +28,7 @@ pub mod args;
|
||||||
use args::*;
|
use args::*;
|
||||||
|
|
||||||
//// CONSTANTS /////////////////////////////////////////////////////////////////////////////////////
|
//// CONSTANTS /////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
#[allow(dead_code)]
|
||||||
const EXIT_SUCCESS: i32 = 0;
|
const EXIT_SUCCESS: i32 = 0;
|
||||||
const EXIT_FAILURE_USAGE: i32 = 1;
|
const EXIT_FAILURE_USAGE: i32 = 1;
|
||||||
|
|
||||||
|
|
|
@ -107,8 +107,12 @@ impl Logger {
|
||||||
warn!("trying to reinitialize the logger, ignoring");
|
warn!("trying to reinitialize the logger, ignoring");
|
||||||
return Err(Error::Usage(format!("logging is already initialized")));
|
return Err(Error::Usage(format!("logging is already initialized")));
|
||||||
} else {
|
} else {
|
||||||
let filter = tracing_subscriber::filter::FilterFn::new(|metadata| {
|
let filter = tracing_subscriber::filter::FilterFn::new(|_metadata| {
|
||||||
true
|
#[allow(unused_variables)]
|
||||||
|
#[allow(unused_mut)]
|
||||||
|
let mut status = true;
|
||||||
|
|
||||||
|
status
|
||||||
});
|
});
|
||||||
|
|
||||||
let basic_subscriber = tracing_subscriber::fmt::Subscriber::builder()
|
let basic_subscriber = tracing_subscriber::fmt::Subscriber::builder()
|
||||||
|
|
Reference in New Issue