generated from PlexSheep/baserepo
automatic cargo CI changes
This commit is contained in:
parent
5b8753c45d
commit
747c3e6eac
|
@ -21,8 +21,6 @@ use libpt::log::*;
|
|||
use clap::Parser;
|
||||
use clap_verbosity_flag::{InfoLevel, Verbosity};
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
//// TYPES /////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//// CONSTANTS /////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -20,8 +20,7 @@ use clap_verbosity_flag::{InfoLevel, Verbosity};
|
|||
|
||||
use std::{
|
||||
fs::File,
|
||||
io::{BufRead, BufReader, IsTerminal, Read},
|
||||
path::PathBuf,
|
||||
io::{BufRead, BufReader, IsTerminal},
|
||||
};
|
||||
|
||||
//// TYPES /////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -21,8 +21,6 @@ use clap::Parser;
|
|||
pub mod args;
|
||||
use args::*;
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
//// CONSTANTS /////////////////////////////////////////////////////////////////////////////////////
|
||||
#[allow(dead_code)]
|
||||
//// STATICS ///////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
//! This crate is currently empty.
|
||||
|
||||
use anyhow::{bail, Result};
|
||||
use std::io::{prelude::*, BufReader};
|
||||
use libpt_log::error;
|
||||
use std::io::{prelude::*, BufReader};
|
||||
|
||||
const BYTES_PER_LINE: usize = 16;
|
||||
const LINE_SEP_HORIZ: char = '─';
|
||||
|
|
|
@ -19,8 +19,9 @@
|
|||
//// IMPORTS ///////////////////////////////////////////////////////////////////////////////////////
|
||||
use std::{
|
||||
fmt,
|
||||
ops::Deref,
|
||||
path::PathBuf,
|
||||
sync::atomic::{AtomicBool, Ordering}, ops::Deref,
|
||||
sync::atomic::{AtomicBool, Ordering},
|
||||
};
|
||||
|
||||
pub mod error;
|
||||
|
@ -32,7 +33,10 @@ use tracing_appender::{
|
|||
non_blocking::{NonBlocking, WorkerGuard},
|
||||
};
|
||||
use tracing_subscriber::{
|
||||
fmt::{format::FmtSpan, time::{self, FormatTime}},
|
||||
fmt::{
|
||||
format::FmtSpan,
|
||||
time::{self, FormatTime},
|
||||
},
|
||||
prelude::*,
|
||||
};
|
||||
|
||||
|
@ -176,7 +180,10 @@ impl Logger {
|
|||
tracing::subscriber::set_global_default(subscriber)?;
|
||||
}
|
||||
(true, true, false, true) => {
|
||||
let subscriber = subscriber.with_writer(new_file_appender(log_dir)).with_timer(time::uptime()).finish();
|
||||
let subscriber = subscriber
|
||||
.with_writer(new_file_appender(log_dir))
|
||||
.with_timer(time::uptime())
|
||||
.finish();
|
||||
tracing::subscriber::set_global_default(subscriber)?;
|
||||
}
|
||||
(true, true, false, false) => {
|
||||
|
|
Reference in New Issue