Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/mft.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer Ben-Amram <omerbenamram@gmail.com>2019-06-06 11:43:10 +0300
committerOmer Ben-Amram <omerbenamram@gmail.com>2019-06-06 11:43:10 +0300
commite102cfbc2b7d54397f5ed99718e41d08fcac5b67 (patch)
tree2d52f55342698cb9ceecfb6eb5921f8a3a64d6a2
parentf467c9335658201d150062b48af45587af16b83d (diff)
parentb328f064536fd3ad5da247371ff4184aefcf8b25 (diff)
Merge branch 'master' into feature/entry-ranges
-rw-r--r--CHANGELOG.md6
-rw-r--r--Cargo.toml3
-rw-r--r--src/bin/mft_dump.rs6
3 files changed, 9 insertions, 6 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2fb3bc9..6af8d86 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [0.4.3] - UNRELEASED
+
+### Fixed
+- Fixed an issue with debug-logs
+
+
## [0.4.2] - 2019-06-04
### Fixed
diff --git a/Cargo.toml b/Cargo.toml
index 9b71c8c..0d505e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,7 @@ authors = ["Omer Ben-Amram <omerbenamram@gmail.com>"]
edition = "2018"
[dependencies]
-log = {version = "0.4.6", features=["release_max_level_debug"]}
+log = {version = "^0.4", features=["release_max_level_debug"]}
clap = "2.33.0"
encoding = "0.2.33"
byteorder = "1.3.1"
@@ -19,7 +19,6 @@ bitflags = "1.0.4"
serde = {version = "1.0.91", features = ["derive"]}
serde_json = "1.0.39"
csv = "1.0.7"
-env_logger = "0.6.1"
snafu = {version="0.4.1", features = ["backtraces", "rust_1_30"]}
num-traits = "0.2"
num-derive = "0.2"
diff --git a/src/bin/mft_dump.rs b/src/bin/mft_dump.rs
index 2ebeea3..75f4a8e 100644
--- a/src/bin/mft_dump.rs
+++ b/src/bin/mft_dump.rs
@@ -1,5 +1,4 @@
use clap::{App, Arg, ArgMatches};
-use env_logger;
use indoc::indoc;
use log::Level;
@@ -11,6 +10,7 @@ use dialoguer::Confirmation;
use mft::csv::FlatMftEntryWithName;
use snafu::ErrorCompat;
+use std::error::Error;
use std::fs::File;
use std::io::Write;
use std::path::{Path, PathBuf};
@@ -407,7 +407,7 @@ impl MftDump {
io::stderr(),
) {
Ok(_) => {}
- Err(e) => eprintln!("Failed to initialize logging: {:?}", e),
+ Err(e) => eprintln!("Failed to initialize logging: {}", e.description()),
};
}
}
@@ -471,8 +471,6 @@ pub fn sanitized(component: &str) -> String {
}
fn main() {
- env_logger::init();
-
let matches = App::new("MFT Parser")
.version(env!("CARGO_PKG_VERSION"))
.author("Omer B. <omerbenamram@gmail.com>")