util/logger: adjust to unified log format
@@ -78,7 +78,9 @@ extern crate serde;
#[macro_use]
extern crate serde_derive;
extern crate serde_json;
-#[macro_use(
+#[cfg_attr(
+ not(test),
+ macro_use(
slog_o,
slog_kv,
slog_trace,
@@ -89,7 +91,26 @@ extern crate serde_json;
slog_log,
slog_record,
slog_b,
- slog_record_static,
+ slog_record_static
+ )
+)]
+#[cfg_attr(
+ test,
+ macro_use(
+ kv,
+ slog_o,
+ slog_kv,
+ slog_crit,
+ slog_trace,
+ slog_error,
+ slog_warn,
+ slog_info,
+ slog_debug,
+ slog_log,
+ slog_record,
+ slog_b,
+ slog_record_static
+ )
)]
extern crate slog;
extern crate slog_async;
