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 BenAmram <omerbenamram@gmail.com>2019-06-06 11:43:28 +0300
committerGitHub <noreply@github.com>2019-06-06 11:43:28 +0300
commitb328f064536fd3ad5da247371ff4184aefcf8b25 (patch)
tree3de338946e660333077421f3573457f2ad9df69f
parentc2e59b9c88f28ff79dca7f166c1d911e4600976a (diff)
parent960869c3430264d32cf06d291596dfac21dd5d2d (diff)
Merge pull request #10 from omerbenamram/bugfix/fix-logging
fix logging
-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 e699f36..ea272de 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::Read;
use std::io::Write;
@@ -300,7 +300,7 @@ impl MftDump {
io::stderr(),
) {
Ok(_) => {}
- Err(e) => eprintln!("Failed to initialize logging: {:?}", e),
+ Err(e) => eprintln!("Failed to initialize logging: {}", e.description()),
};
}
}
@@ -364,8 +364,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>")