Replace ethcore-logger with env-logger. (#10102)

* Replace ethcore-logger with env-logger.

* Fix logger initialization in WASM tests.

* uncomment logger initialization in secret store

* Don't use ethcore-logger in whisper.

* Move ethcore-logger within parity dir.

* Uncomment rest from secret-store.

* Use `let _ =` in private_contract for consistency

* `ok()` to `let _ =` fix in service

* Use `let _ = ` for state_db
This commit is contained in:
Tomasz Drwięga
2019-01-08 15:07:20 +01:00
committed by Marek Kotewicz
parent ce5f704dd5
commit ab22d5e278
42 changed files with 128 additions and 143 deletions

View File

@@ -1316,7 +1316,6 @@ mod tests {
use vm::EnvInfo;
use spec::*;
use types::transaction::*;
use ethcore_logger::init_log;
use trace::{FlatTrace, TraceError, trace};
use evm::CallType;
@@ -1332,7 +1331,7 @@ mod tests {
#[test]
fn should_apply_create_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1372,7 +1371,7 @@ mod tests {
#[test]
fn should_work_when_cloned() {
init_log();
let _ = env_logger::try_init();
let a = Address::zero();
@@ -1390,7 +1389,7 @@ mod tests {
#[test]
fn should_trace_failed_create_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1426,7 +1425,7 @@ mod tests {
#[test]
fn should_trace_call_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1468,7 +1467,7 @@ mod tests {
#[test]
fn should_trace_basic_call_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1509,7 +1508,7 @@ mod tests {
#[test]
fn should_trace_call_transaction_to_builtin() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1550,7 +1549,7 @@ mod tests {
#[test]
fn should_not_trace_subcall_transaction_to_builtin() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1592,7 +1591,7 @@ mod tests {
#[test]
fn should_trace_callcode_properly() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1650,7 +1649,7 @@ mod tests {
#[test]
fn should_trace_delegatecall_properly() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1709,7 +1708,7 @@ mod tests {
#[test]
fn should_trace_failed_call_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1748,7 +1747,7 @@ mod tests {
#[test]
fn should_trace_call_with_subcall_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1807,7 +1806,7 @@ mod tests {
#[test]
fn should_trace_call_with_basic_subcall_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1861,7 +1860,7 @@ mod tests {
#[test]
fn should_not_trace_call_with_invalid_basic_subcall_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1903,7 +1902,7 @@ mod tests {
#[test]
fn should_trace_failed_subcall_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -1958,7 +1957,7 @@ mod tests {
#[test]
fn should_trace_call_with_subcall_with_subcall_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -2032,7 +2031,7 @@ mod tests {
#[test]
fn should_trace_failed_subcall_with_subcall_transaction() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();
@@ -2104,7 +2103,7 @@ mod tests {
#[test]
fn should_trace_suicide() {
init_log();
let _ = env_logger::try_init();
let mut state = get_temp_state();