Skip to content

Commit

Permalink
Fix logging bug
Browse files Browse the repository at this point in the history
Loading the config tries to log, fails. Need to initialize logger first.
  • Loading branch information
AndrewRadev committed Feb 8, 2022
1 parent 4ff14cb commit 9fe40f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ use quickmd::markdown::Renderer;
use quickmd::ui;

fn main() {
let config = Config::load().
unwrap_or_default();

let options = Options::build();
options.init_logging();

let config = Config::load().
unwrap_or_default();

debug!("Loaded config: {:?}", config);
debug!(" > path: {}", Config::yaml_path().display());
debug!("Using input options: {:?}", options);
Expand Down

0 comments on commit 9fe40f4

Please sign in to comment.