From 9d20d7f382c7a6a08467b056d9b43b66409fead7 Mon Sep 17 00:00:00 2001 From: GZTime Date: Thu, 9 Jan 2025 01:35:13 +0800 Subject: [PATCH] feat: log args --- src/main.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 032069d..285e47f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,11 +4,19 @@ use log::{debug, info, warn}; use ocl::{Buffer, Device, Platform, ProQue}; use pgp::types::PublicKeyTrait; use rand::thread_rng; -use std::{fmt::Write, fs, path::Path, str::FromStr, sync::mpsc::*, thread, time::Instant}; +use std::{ + fmt::Write, + fs, + path::Path, + str::FromStr, + sync::{mpsc::*, LazyLock}, + thread, + time::Instant, +}; +use utils::ARGS; use utils::*; mod utils; -pub use utils::ARGS; fn main() -> anyhow::Result<()> { env_logger::Builder::from_env( @@ -17,7 +25,7 @@ fn main() -> anyhow::Result<()> { .format_indent(None) .init(); - debug!("{:?}", &ARGS); + debug!("{:#?}", LazyLock::force(&ARGS)); let device_list = utils::DeviceList::new()?;