Skip to content

Commit f636867

Browse files
committed
sentry - main - tidy up logging
1 parent f257878 commit f636867

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sentry/src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ use hyper::service::{make_service_fn, service_fn};
88
use hyper::{Error, Server};
99
use primitives::adapter::{Adapter, DummyAdapterOptions, KeystoreOptions};
1010
use primitives::config::configuration;
11-
use primitives::util::logging::{Async, PrefixedCompactFormat, TermDecorator};
1211
use primitives::util::tests::prep_db::{AUTH, IDS};
1312
use primitives::ValidatorId;
1413
use sentry::db::{postgres_connection, redis_connection, setup_migrations};
1514
use sentry::Application;
16-
use slog::{error, info, o, Drain, Logger};
15+
use slog::{error, info, Logger};
1716
use std::convert::TryFrom;
1817

1918
const DEFAULT_PORT: u16 = 8005;
@@ -151,6 +150,9 @@ async fn run<A: Adapter + 'static>(app: Application<A>, _clustered: bool, port:
151150
}
152151

153152
fn logger() -> Logger {
153+
use primitives::util::logging::{Async, PrefixedCompactFormat, TermDecorator};
154+
use slog::{o, Drain};
155+
154156
let decorator = TermDecorator::new().build();
155157
let drain = PrefixedCompactFormat::new("sentry", decorator).fuse();
156158
let drain = Async::new(drain).build().fuse();

0 commit comments

Comments
 (0)