-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Replace ethcore-logger with env-logger. #10102
Conversation
Shouldn't we remove the |
@tomaka It's still useful - allows to share the log format between main parity binary and whisper CLI + exposes latest logs via RPC method. None of this is super critical, so I guess we could remove it entirely (and integrate the setup with the main crate) if you believe it's the way to go. |
I think this is the way to go, but we can do it later. |
Note that if we're really in the path to remove |
secret-store/src/key_server.rs
Outdated
@@ -325,7 +325,7 @@ pub mod tests { | |||
|
|||
#[test] | |||
fn document_key_generation_and_retrievement_works_over_network_with_single_node() { | |||
//::logger::init_log(); | |||
//::env_logger::try_init(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not caused by this PR, but can we remove those lines as they are commented out? Or just uncomment it, because it's try_init
and might break individual test invoking.
I've removed So now it's only required by |
secret-store/src/key_server.rs
Outdated
@@ -347,7 +347,7 @@ pub mod tests { | |||
|
|||
#[test] | |||
fn document_key_generation_and_retrievement_works_over_network_with_3_nodes() { | |||
//::logger::init_log(); | |||
::env_logger::try_init().ok(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe let _ = ::env_logger::try_init();
?
@@ -1360,7 +1360,7 @@ pub mod tests { | |||
|
|||
#[test] | |||
fn error_in_generation_session_broadcasted_to_all_other_nodes() { | |||
//::logger::init_log(); | |||
//::env_logger::try_init(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And uncomment those as well!
Regarding the deprecation, should this be logged somewhere so it's not forgotten? |
Thanks. Could you resolve the conflicts? |
I was brought here by the RPC method |
env_logger
is sufficient and we can avoid bringing additional path dependency.