Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Fenchel authored and knoellle committed Sep 21, 2024
1 parent c3b083e commit 399be07
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ use std::{
use std::{path::PathBuf, sync::mpsc};

use clap::Parser;
use env_logger::{Builder, Env};
use global_hotkey::{hotkey::HotKey, GlobalHotKeyEvent, GlobalHotKeyManager, HotKeyState};
use image::DynamicImage;
use log::{debug, error, info, warn};
use notify::{watcher, RecursiveMode, Watcher};
use xcap::Window;
use log::{debug, error, log_enabled, info, Level, warn};
use env_logger::{Builder, Env};

use wfinfo::{
database::Database,
ocr::{normalize_string, reward_image_to_reward_names, OCR},
};


fn run_detection(capturer: &Window, db: &Database) {
let frame = capturer.capture_image().unwrap();
info!("Captured");
Expand Down Expand Up @@ -163,11 +162,9 @@ fn main() -> Result<(), Box<dyn Error>> {
let arguments = Arguments::parse();
let default_log_path = PathBuf::from_str(&std::env::var("HOME").unwrap()).unwrap().join(PathBuf::from_str(".local/share/Steam/steamapps/compatdata/230410/pfx/drive_c/users/steamuser/AppData/Local/Warframe/EE.log")?);
let log_path = arguments.game_log_file_path.unwrap_or(default_log_path);

let env = Env::default()
.filter_or("WFINFO_LOG", "info")
.write_style_or("WFINFO_STYLE", "always");

Builder::from_env(env)
.format_timestamp(None)
.format_level(false)
Expand Down

0 comments on commit 399be07

Please sign in to comment.