@@ -8,12 +8,11 @@ use hyper::service::{make_service_fn, service_fn};
8
8
use hyper:: { Error , Server } ;
9
9
use primitives:: adapter:: { Adapter , DummyAdapterOptions , KeystoreOptions } ;
10
10
use primitives:: config:: configuration;
11
- use primitives:: util:: logging:: { Async , PrefixedCompactFormat , TermDecorator } ;
12
11
use primitives:: util:: tests:: prep_db:: { AUTH , IDS } ;
13
12
use primitives:: ValidatorId ;
14
13
use sentry:: db:: { postgres_connection, redis_connection, setup_migrations} ;
15
14
use sentry:: Application ;
16
- use slog:: { error, info, o , Drain , Logger } ;
15
+ use slog:: { error, info, Logger } ;
17
16
use std:: convert:: TryFrom ;
18
17
19
18
const DEFAULT_PORT : u16 = 8005 ;
@@ -151,6 +150,9 @@ async fn run<A: Adapter + 'static>(app: Application<A>, _clustered: bool, port:
151
150
}
152
151
153
152
fn logger ( ) -> Logger {
153
+ use primitives:: util:: logging:: { Async , PrefixedCompactFormat , TermDecorator } ;
154
+ use slog:: { o, Drain } ;
155
+
154
156
let decorator = TermDecorator :: new ( ) . build ( ) ;
155
157
let drain = PrefixedCompactFormat :: new ( "sentry" , decorator) . fuse ( ) ;
156
158
let drain = Async :: new ( drain) . build ( ) . fuse ( ) ;
0 commit comments