Skip to content

Commit

Permalink
fix: instantiate logger
Browse files Browse the repository at this point in the history
clippy had a false positive unused_variable which I blindly followed, effectively muting logging inside commands
  • Loading branch information
jqnatividad committed Dec 21, 2024
1 parent 5bd4fe4 commit 9c0c1a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ fn main() -> QsvExitCode {
let num_commands = enabled_commands.split('\n').count();

let now = Instant::now();
let (qsv_args, _) = match util::init_logger() {
#[allow(unused_variables)]
let (qsv_args, logger_handle) = match util::init_logger() {
Ok((qsv_args, logger_handle)) => (qsv_args, logger_handle),
Err(e) => {
eprintln!("{e}");
Expand Down
3 changes: 2 additions & 1 deletion src/maindp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ fn main() -> QsvExitCode {
util::qsv_custom_panic();

let now = Instant::now();
let (qsv_args, _) = match util::init_logger() {
#[allow(unused_variables)]
let (qsv_args, logger_handle) = match util::init_logger() {
Ok((qsv_args, logger_handle)) => (qsv_args, logger_handle),
Err(e) => {
eprintln!("{e}");
Expand Down
3 changes: 2 additions & 1 deletion src/mainlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ fn main() -> QsvExitCode {
util::qsv_custom_panic();

let now = Instant::now();
let (qsv_args, _) = match util::init_logger() {
#[allow(unused_variables)]
let (qsv_args, logger_handle) = match util::init_logger() {
Ok((qsv_args, logger_handle)) => (qsv_args, logger_handle),
Err(e) => {
eprintln!("{e}");
Expand Down

0 comments on commit 9c0c1a7

Please sign in to comment.